Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.27 KB

time.md

File metadata and controls

72 lines (51 loc) · 1.27 KB

Time

{id: time}

Dates and Time

{id: datetime} {i: Time} {i: Time::Span}

Sleep

{id: sleep} {i: sleep}

  • Sleep in seconds.
  • It can get either and integer or a floating point number.

Time difference or Time::Span

{id: time-difference}

Elapsed time

{id: elapsed-time} {i: monotonic} {i: seconds} {i: total_seconds} {i: total_milliseconds} {i: microseconds} {i: total_microseconds} {i: sleep}

Timestamp formatting

{id: timestamp-formatting} {i: to_s}

Add timespan

{id: add-timespan} {i: days} {i: hours} {i: minutes} {i: seconds}

  • See these methods at Int

Time Types

{id: time-types}