Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l0go/swatch
Converts time to swatch internet time
https://github.com/l0go/swatch
haxe swatch swatch-internet-time
Last synced: about 1 month ago
JSON representation
Converts time to swatch internet time
- Host: GitHub
- URL: https://github.com/l0go/swatch
- Owner: l0go
- License: zlib
- Created: 2024-01-25T14:24:00.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-25T18:32:58.000Z (12 months ago)
- Last Synced: 2024-10-30T20:14:44.790Z (3 months ago)
- Topics: haxe, swatch, swatch-internet-time
- Language: Haxe
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Swatch
Extremely simple tool to convert time to swatch. It was a fun exercise to play with Haxe's date class!## Usage
```
swatch - converts time to swatch internet time
usage: swatch [time]
Time parameter can be emitted for current time. It can be formatted as:
- "YYYY-MM-DD hh:mm:ss"
- "YYYY-MM-DD"
- "hh:mm:ss"
```## Future plans
Not sure if I have time for it right now, but turning this into some form of TUI clock would be real neat!It would also be fun to do this in an esoteric language like Haskell or Rust to see how they compare to Haxe. Originally I planned to write this in Zig but the date library seemed below par. Maybe now that I wrote it in Haxe it would be easier to translate.