Sha256: 1ce2b41f23d17637c80ad7c3e94a6bf91ca69ed5cdfb453217b9e30148b29662
Contents?: true
Size: 829 Bytes
Versions: 7
Compression:
Stored size: 829 Bytes
Contents
# -*- encoding: utf-8 -*- # -*- frozen_string_literal: true -*- # -*- warn_indent: true -*- UnitMeasurements::Time = UnitMeasurements.build do system :metric do primitive :s si_unit :s, aliases: [:sec, :second, :seconds] unit :min, value: "60 s", aliases: [:minute, :minutes] end unit :h, value: "60 min", aliases: [:hr, :hour, :hours] unit :d, value: "24 h", aliases: [:day, :days] unit :wk, value: "7 d", aliases: [:week, :weeks] unit :fn, value: "2 wk", aliases: [:"4tnite", :fortnight, :fortnights] unit :mo, value: "30.4167 d", aliases: [:month, :months] unit :yr, value: "365 d", aliases: [:y, :year, :years] unit :qtr, value: "3 mo", aliases: [:quarter, :quarters] unit :dec, value: "10 y", aliases: [:decade, :decades] unit :cent, value: "10 dec", aliases: [:century, :centuries] end
Version data entries
7 entries across 7 versions & 1 rubygems