class Countdown

Overview

A simple Crystal API for producing an accurate, intuitive description of the timespan between two Time instances.

Defined in:

countdown.cr

Constant Summary

VERSION = {{ (`shards version /srv/crystaldoc.info/github-mamantoha-countdown-crystal-v0.1.2/src`).chomp.stringify }}

Constructors

Instance Method Summary

Constructor Detail

def self.new(start_time : Time, end_time : Time) #

[View source]

Instance Method Detail

def components : NamedTuple(years: Int32, months: Int32, days: Int32, hours: Int32, minutes: Int32, seconds: Int32) #

[View source]
def to_s(*, oxford_comma = false, include_seconds = false) : String #

[View source]