Expand description

Time is an abstraction of dates and times.

This module implements the Time class from Ruby Core.

In Artichoke, Time is represented as a 64-bit signed integer of seconds since January 1, 1970 UTC and an unsigned 32-bit integer of subsecond nanoseconds. This allows representing roughly 584 billion years.

You can use this class in your application by accessing it directly. As a Core class, it is globally available:


This implementation of Time supports the system clock via the chrono and chrono-tz crates.


FFI glue between the Rust trampolines and the mruby C interpreter.

Glue between mruby FFI and Time Rust implementation.


Implementation of Ruby Time, a timezone-aware datetime, based on [chrono].