# rl-timestamp

> Insert a small timestamp

Latest version **0.0.7** (published 2016-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install rl-timestamp
pnpm add rl-timestamp
yarn add rl-timestamp
bun add rl-timestamp
```

Provides the command `rl-timestamp`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2016-01-06 |
| First published | 2015-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Richard Littauer |
| Maintainers | richardlitt |
| Keywords | cli-app, cli |

## Links

- npm: https://www.npmjs.com/package/rl-timestamp
- Repository: https://github.com/richardlitt/timestamp
- Homepage: https://github.com/richardlitt/timestamp#readme
- Issues: https://github.com/richardlitt/timestamp/issues
- npm.io page: https://npm.io/package/rl-timestamp

## Dependencies (2)

- [meow](https://npm.io/package/meow.md) ^3.3.0
- [moment](https://npm.io/package/moment.md) ^2.10.6

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2016-01-06
- 0.0.6 — 2015-12-29
- 0.0.5 — 2015-12-29
- 0.0.4 — 2015-12-15
- 0.0.3 — 2015-12-15
- 0.0.2 — 2015-12-14
- 0.0.1 — 2015-12-11

## README

# rl-timestamp [![Build Status](https://travis-ci.org/RichardLitt/timestamp.svg?branch=master)](https://travis-ci.org/RichardLitt/timestamp)

> Some simple timestamp tools

## Install

    $ npm install --save rl-timestamp

I would also add `alias timestamp=rl-timestamp` to your bash profile.

## Usage

```js
var timestamp = require('rl-timestamp');

timestamp();
//=> 'unicorns & rainbows'
```

## API

### timestamp() methods

#### readFileLines

Type: `path`

Prints out minute totals for two moment points separated by -- from a file

#### options

##### no-sum

Type: `boolean`  
Default: `false`

Silences print out of total hours.

## CLI

### Install

```sh
$ npm install --global rl-timestamp
```

### Default

```sh
$ rl-timestamp
15-12-28 18:12
```

### With file

```sh
$ rl-timestamp -f testfile.txt
111
56
85
120
=====
Total:
6 hours, 12 minutes
```

#### With `no-sum` flag

```sh
$ rl-timestamp -f testfile.txt --no-sum
111
56
85
120
```

#### With `since` flag

```sh
$ rl-timestamp -f testfile.txt -since=5
85
120
=====
Total:
3 hours, 25 minutes
```

#### With `today` flag

```sh
$ rl-timestamp -f testfile.txt --today
120
=====
Total:
2 hours, 0 minutes
```

#### With `now` flag

```sh
$ rl-timestamp -f testfile.txt --now
Duration so far:
0 hours and 17 minutes
```

## License

MIT © [Richard Littauer](http://burntfen.com)

---
_Source: https://npm.io/package/rl-timestamp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
