sloth_datetime 1.0.0+1 copy "sloth_datetime: ^1.0.0+1" to clipboard
sloth_datetime: ^1.0.0+1 copied to clipboard

Extensions for the DateTime class

ARE YOU A SLOTH? - SLOTH DATETIME #

Features #

  • DateTime extension:
    • secondsSinceEpoch

Getting started #

With dart:

 $ dart pub add sloth_datetime

With Flutter:

 $ flutter pub add sloth_datetime

Usage #

Import the package

import 'package:sloth_datetime/sloth_datetime.dart';

Access the extensions:

  // get secondsSinceEpoch
  int seconds = DateTime.now().secondsSinceEpoch;
  print("Seconds since epoch $seconds s");
1
likes
150
points
0
downloads

Publisher

verified publisherynnob.com

Weekly Downloads

Extensions for the DateTime class

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on sloth_datetime