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

Libraries

easy_network_time