instant 0.1.1+2 copy "instant: ^0.1.1+2" to clipboard
instant: ^0.1.1+2 copied to clipboard

outdated

A package that exports functions for converting, formatting, and nicening of dates/times in Dart.

example/instant_example.dart

import 'package:instant/instant.dart';

main() {
  DateTime SanFran = dateTimeByZone(zone: "PDT"); //current DateTime in PDT timezone
  print(formatTime(time: SanFran)); //prints current time in PDT
  print(formatDate(date: SanFran)); //prints current date in PDT

  // This is largely a placeholder with the most barebones of usage. Check the
  // Gitbook and API docs for a much more thorough set of guides and examples.
}
30
likes
0
pub points
91%
popularity

Publisher

verified publisherkishoredev.live

A package that exports functions for converting, formatting, and nicening of dates/times in Dart.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on instant