Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timgabets/atm-timestamp
atm-timestamp npm module
https://github.com/timgabets/atm-timestamp
Last synced: about 2 months ago
JSON representation
atm-timestamp npm module
- Host: GitHub
- URL: https://github.com/timgabets/atm-timestamp
- Owner: timgabets
- Created: 2017-10-10T11:20:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T12:07:10.000Z (over 7 years ago)
- Last Synced: 2024-10-13T08:40:51.799Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
# atm-timestamp
A timestamp service used by [Electron ATM](https://github.com/timgabets/electron-atm) and [ATM State Navigator](https://github.com/timgabets/states-navigator) applications. The get() method of the service returns current time string in HH:MM:ss.mmm format (e.g. '14:52:50.007'), which may be used in traces, logs etc.
## Install
```bash
npm install atm-timestamp
```## To Use:
```javascript
> var Timestamp = require('atm-timestamp');
> var t = new Timestamp();
> t.get()
'14:52:01.548'
> t.get()
'14:52:50.007'
```