Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benoitzohar/cerebro-timestamp
Cerebro plugin to encode/decode timestamps
https://github.com/benoitzohar/cerebro-timestamp
cerebro cerebro-plugin epoch timestamp unix-timestamp
Last synced: about 1 month ago
JSON representation
Cerebro plugin to encode/decode timestamps
- Host: GitHub
- URL: https://github.com/benoitzohar/cerebro-timestamp
- Owner: benoitzohar
- License: mit
- Created: 2017-03-03T18:33:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T14:27:44.000Z (about 7 years ago)
- Last Synced: 2024-10-10T09:29:46.542Z (3 months ago)
- Topics: cerebro, cerebro-plugin, epoch, timestamp, unix-timestamp
- Language: JavaScript
- Size: 866 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cerebro-timestamp
> [Cerebro](https://cerebroapp.com) plugin to encode/decode timestamps and dates
![](screenshot1.png)
![](screenshot2.png)
![](screenshot3.png)
## Usage
In Cerebro, type a timestamp (Unix time), or `ts` and a timestamp (Unix time) or a date to encode/decode it. Use ⌘+C or ↩ to copy the default result value to clipboard or go down first to select a value to copy.
- Number of *seconds* since epoch:
`1488570776` => 2017-03-03T19:52:56Z
`ts 1488570776` => 2017-03-03T19:52:56Z- Number of *milliseconds* since epoch:
`1488570776213` => 2017-03-03T19:52:56Z
`ts 1488570776213` => 2017-03-03T19:52:56Z- Date in the Y-m-d format:
`ts 2017-03-03` => 1488570776- Current date:
`ts now` => All outputs for the current timestampAvailable outputs are:
- Readable date: `2017-03-03 7:52:56 pm` (based on the current locale)
- ISO 8601: `2017-03-03T19:52:56Z`
- Unix time: `1488570776`
- Unix millisecond time: `1488570776213`
- Long Date: `March 3, 2017 7:52 PM`
- Full Date: `Friday, March 3, 2017 7:52 PM`The default output will depend on the input.
This plugin is using the [MomentJS](https://github.com/moment/moment) module to handle the dates.
More infos about `timestamp` or `Unix time` here: [https://wikipedia.org/wiki/Unix_time](https://en.wikipedia.org/wiki/Unix_time)
## Installing
* Type `plugins timestamp` into Cerebro
* Click `install`## Related
- [Cerebro](http://github.com/KELiON/cerebro) – main repo for Cerebro app;
## License
MIT © [Benoit Zohar](https://github.com/benoitzohar)