Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idlephysicist/ut
UNIX-Time: Give it a date it gives you a timestamp
https://github.com/idlephysicist/ut
go golang unixtime unixtimestamp unixtimestamp-format
Last synced: 7 days ago
JSON representation
UNIX-Time: Give it a date it gives you a timestamp
- Host: GitHub
- URL: https://github.com/idlephysicist/ut
- Owner: IdlePhysicist
- License: mit
- Created: 2019-09-18T03:05:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T23:33:53.000Z (about 4 years ago)
- Last Synced: 2024-06-20T13:35:11.943Z (6 months ago)
- Topics: go, golang, unixtime, unixtimestamp, unixtimestamp-format
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UT
_IdlePhysicist, 2019_
This is a very basic (and limited) piece of software. It was written in about 15 minutes for one purpose, I decided to commit it here because it might be useful in the future and will save me 15 minutes down the road.
## Usage
```shell
$ ut -nf YYYY-MM-DD -- 2019-08-01
```The `-n` flag fudges the calculation by taking the time to be noon that day and not midnight, this is because I found that I was getting the pervious date when I re-parsed the timestamp.