at-shakil/rtime

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# RTime

[![Build Status](https://travis-ci.org/atshakil/rtime.svg?branch=master)](https://travis-ci.org/atshakil/rtime)
[![Gem Version](https://badge.fury.io/rb/rtime.svg)](https://badge.fury.io/rb/rtime)
[![Test Coverage](https://codeclimate.com/github/atshakil/rtime/badges/coverage.svg)](https://codeclimate.com/github/atshakil/rtime/coverage)
[![Inline docs](http://inch-ci.org/github/atshakil/rtime.svg?branch=master)](http://inch-ci.org/github/atshakil/rtime)
[![Code Climate](https://codeclimate.com/github/atshakil/rtime/badges/gpa.svg)](https://codeclimate.com/github/atshakil/rtime)
[![Issue Count](https://codeclimate.com/github/atshakil/rtime/badges/issue_count.svg)](https://codeclimate.com/github/atshakil/rtime)

## Summary

RTime is a random timestamp generator.

## Installation

This app is intended to be used as a command-line utility.

Installation is as simple as,

    gem install rtime

If you eventually develop a taste for `rtime`'s tiny API,
you may want to follow the steps below.

Add this line to your application's Gemfile:

```ruby
gem 'rtime'
```

And then execute:

    bundle

## Usage

```sh
rtime generate <start_date> <end_date> <coverage> [--night-only]
```

Here's an example use case:

```sh
$ rtime g 20170127 20170203 60% --night-only

2017-01-28 20:48:48 +0000

2017-01-29 03:51:15 +0000

2017-01-31 01:15:47 +0000

2017-02-03 23:41:54 +0000
```

## Contributing

If you are interested in contributing, please [submit a pull request](https://help.github.com/articles/about-pull-requests/).

## License

[MIT](http://opensource.org/licenses/MIT)