https://github.com/ilmalte/internet_time
https://github.com/ilmalte/internet_time
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ilmalte/internet_time
- Owner: ilmalte
- License: mit
- Created: 2023-04-11T09:52:54.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T11:19:44.000Z (about 3 years ago)
- Last Synced: 2025-04-04T23:42:39.999Z (over 1 year ago)
- Language: CMake
- Homepage: https://pub.dev/packages/internet_time
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
For all your [Swatch Internet Time](http://en.wikipedia.org/wiki/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.
```dart
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](https://github.com/peterhellberg/beats).