vy_date 0.3.1 copy "vy_date: ^0.3.1" to clipboard
vy_date: ^0.3.1 copied to clipboard

outdated

A couple of simple utilities, Date and DatePeriod classes.

example/example.dart

// Copyright (c) 2017, Giorgio. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:vy_date/vy_date.dart';

main() {
  Date date = new Date.now();
  Date nextDay = date.add(new Duration(days: 1));
  DatePeriod period = new DatePeriod(date, nextDay);
  // prints: "Number of days: 2"
  print('Number of days: ${period.inDays}');
}
1
likes
0
pub points
51%
popularity

Publisher

unverified uploader

A couple of simple utilities, Date and DatePeriod classes.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

intl, quiver

More

Packages that depend on vy_date