internet_time 0.0.2 copy "internet_time: ^0.0.2" to clipboard
internet_time: ^0.0.2 copied to clipboard

For all your Swatch Internet Time needs.

For all your Swatch Internet Time needs.

Getting started #

TODO: Add pubdev installation.

Usage #

The package is very easy to use, you can find the methods you can call in the /lib/internet_time.dart file.

import 'package:internet_time/internet_time.dart';

void main() {
    final beats = InternetTime();
    print(beats.nowString());
    print(beats
        .fromTime(DateTime.fromMicrosecondsSinceEpoch(1681193970 * 1000000)));
}

Additional information #

Time precision is missing. It might be nice to implement it. Inspired by peterhellberg's golang package.

6
likes
125
pub points
36%
popularity

Publisher

verified publishermaltese.dev

For all your Swatch Internet Time needs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on internet_time