day 0.2.1 copy "day: ^0.2.1" to clipboard
day: ^0.2.1 copied to clipboard

outdated

Day.js in dart. Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

example/main.dart

// View https://github.com/g1eny0ung/day.dart for more usage.

import 'package:day/day.dart';

void main() {
  final now = Day();

  // After one day
  final afterOneDay = now.add(1, 'date');
  print(afterOneDay);

  // Chainable
  now
    ..setYear(2020)
    ..setMonth(5)
    ..setDate(1)
    ..finished();

  // Get year
  print(now.year());
}
20
likes
0
points
898
downloads

Publisher

unverified uploader

Weekly Downloads

Day.js in dart. Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on day