https://github.com/cohalz/mruby-time-library
time Library for mruby.
https://github.com/cohalz/mruby-time-library
mrbgem mrbgems mruby mruby-gem
Last synced: 2 months ago
JSON representation
time Library for mruby.
- Host: GitHub
- URL: https://github.com/cohalz/mruby-time-library
- Owner: cohalz
- License: mit
- Created: 2020-10-17T12:03:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T06:10:13.000Z (over 3 years ago)
- Last Synced: 2025-12-28T11:06:45.066Z (6 months ago)
- Topics: mrbgem, mrbgems, mruby, mruby-gem
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-time-library
[](https://github.com/cohalz/mruby-time-library/actions/workflows/test.yml?query=branch%3Amaster)
[time](https://ruby-doc.org/stdlib-2.7.2/libdoc/time/rdoc/index.html) Library for mruby.
```ruby
p Time.utc(2020, 10, 17).xmlschema
#=> "2020-10-17T00:00:00Z"
p Time.utc(2020, 10, 17).httpdate
#=> "Sat, 17 Oct 2020 00:00:00 GMT"
p Time.utc(2020, 10, 17).rfc2822
#=> "Sat, 17 Oct 2020 00:00:00 -0000"
```
## Implemented methods
| method | implemented |
| - | - |
| Time#httpdate | o |
| Time#iso8601 | o |
| Time#rfc2822 | o |
| Time#rfc822 | o |
| Time#xmlschema | o |
| Time.httpdate | - |
| Time.iso8601 | - |
| Time.rfc2822 | - |
| Time.rfc822 | - |
| Time.strptime | - |
| Time.xmlschema | - |
| Time.zone_offset | - |