https://github.com/sixarm/sixarm_ruby_date_time_random
SixArm.com » Ruby » Date and Time #random methods
https://github.com/sixarm/sixarm_ruby_date_time_random
date datetime extensions gem random ruby time
Last synced: 10 months ago
JSON representation
SixArm.com » Ruby » Date and Time #random methods
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_date_time_random
- Owner: SixArm
- License: other
- Created: 2014-03-26T07:42:14.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T19:27:59.000Z (over 2 years ago)
- Last Synced: 2025-02-06T00:25:45.459Z (12 months ago)
- Topics: date, datetime, extensions, gem, random, ruby, time
- Language: Ruby
- Homepage:
- Size: 275 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
Date and Time #random methods
[](http://badge.fury.io/rb/sixarm_ruby_date_time_random)
[](https://travis-ci.org/SixArm/sixarm_ruby_date_time_random)
[](https://codeclimate.com/github/SixArm/sixarm_ruby_date_time_random/maintainability)
* Git:
* Doc:
* Gem:
* Contact: Joel Parker Henderson,
* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).
## Introduction
Generate random dates and times:
DateTime.random
Date.random
Time.random
The random range is +/- 10000 days.
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_date_time_random
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_date_time_random'
### Require
To require the gem in your code:
require 'sixarm_ruby_date_time_random'