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

outdated

A couple of simple utilities, Date and DatePeriod classes. Date is a wrapper around DateTime class. DatePeriod allows to manage periods

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';

void main() {
  final Date date = Date.now();
  final Date nextDay = date.add(Duration(days: 1));
  final DatePeriod period = DatePeriod(date, nextDay);
  // prints: "Number of days: 2"
  print('Number of days: ${period.inDays}');
}
1
likes
0
points
809
downloads

Publisher

unverified uploader

Weekly Downloads

A couple of simple utilities, Date and DatePeriod classes. Date is a wrapper around DateTime class. DatePeriod allows to manage periods

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl, quiver

More

Packages that depend on vy_date