easy_network_time 1.0.3 copy "easy_network_time: ^1.0.3" to clipboard
easy_network_time: ^1.0.3 copied to clipboard

Easy Network Time

The resources to get the online time are taken from https://worldtimeapi.org.

Usage #

 final dateTimeCurrent =
      await EasyNetworkTime.getTimeNetwork(TimeLocation.asiaHoChiMinh);

  final dateTimeFromLocation = EasyNetworkTime.createDateTime(
    DateTime.now(),
    TimeLocation.asiaHoChiMinh,
  );

  print(dateTimeCurrent);
  print(dateTimeFromLocation);
4
likes
130
pub points
27%
popularity

Publisher

unverified uploader

Easy Network Time

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http, timezone

More

Packages that depend on easy_network_time