vy_date 0.3.1

  • README.md
  • Example
  • Installing
  • Versions
  • 46


Simple utilities for managing dates and periods.

The Date class simply wraps the DateTime one. But I think it is easier to manage and to understand the logic of the program this way. license.


A simple usage example:

import 'package:vy_date/vy_date.dart';

main() {
  Date date = new Date.now();

Features and bugs

Please file feature requests and bugs at the issue tracker.


  • Initial version


// 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}');

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  vy_date: ^0.3.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:vy_date/vy_date.dart';
Version Uploaded Documentation Archive
0.3.1 Aug 24, 2018 Go to the documentation of vy_date 0.3.1 Download vy_date 0.3.1 archive
0.3.0 Jul 21, 2018 Go to the documentation of vy_date 0.3.0 Download vy_date 0.3.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:vy_date/vy_date.dart.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
intl ^0.15.7 0.15.7
quiver ^2.0.0+1 2.0.1
Transitive dependencies
matcher 0.12.4
meta 1.1.6
path 1.6.2
stack_trace 1.9.3
Dev dependencies
test ^1.3.0