Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/nx-date-time
Date time utility for nx.
https://github.com/afeiship/nx-date-time
date nx time utility
Last synced: 12 days ago
JSON representation
Date time utility for nx.
- Host: GitHub
- URL: https://github.com/afeiship/nx-date-time
- Owner: afeiship
- Created: 2020-03-15T14:10:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T00:36:02.000Z (over 4 years ago)
- Last Synced: 2024-10-09T09:20:15.811Z (about 1 month ago)
- Topics: date, nx, time, utility
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nx-date-time
> Date time utility for nx.## installation
```rb
# from gem
gem 'nx-date-time'
# from git
gem 'nx-date-time', git: '[email protected]:afeiship/nx-date-time.git'
```## usage
```rb
require "nx-date-time"puts Nx::DateTime.now
puts Nx::DateTime.date
puts Nx::DateTime.time
puts Nx::DateTime.date_time
puts Nx::DateTime.ym
puts Nx::DateTime.ymd_hms# 1584281622
# 2020-03-15
# 22:13:42
# 2020-03-15 22:13:42
# 2020-03
# 20200315_221342
```## build/publish
```shell
# build
gem build nx-date-time.gemspec# publish
gem push nx-date-time-0.1.0.gem
```