railsy_time 1.0.0 copy "railsy_time: ^1.0.0" to clipboard
railsy_time: ^1.0.0 copied to clipboard

Convenient date/time extension methods inspired by Ruby on Rails.

example/railsy_time_example.dart

import 'package:railsy_time/railsy_time.dart';

void main() {
  var dt = 29.days.fromNow.endOfMonth;
  print('End of next month: ${dt.toIso8601String()}');

  dt = 365.days.ago.beginningOfYear;
  print('Beginning of last year: ${dt.toIso8601String()}');
}
2
likes
160
pub points
0%
popularity

Publisher

verified publishercitizen428.net

Convenient date/time extension methods inspired by Ruby on Rails.

Repository (GitHub)
View/report issues

Topics

#date #time

Documentation

API reference

License

MIT (license)

Dependencies

clock

More

Packages that depend on railsy_time