package datetime import ( "time" ) const ( // Conversions d’unités. NanosecondPerMicrosecond = 1000 MicrosecondPerMillisecond = 1000 MillisecondPerSecond = 1000 SecondPerMinute = 60 MinutePerHour = 60 HourPerDay = 24 DayPerWeek = 7 MonthPerYear = 12 BeatPerDay = 1000 HourPerWeek = HourPerDay * DayPerWeek MinutePerDay = MinutePerHour * HourPerDay MinutePerWeek = MinutePerHour * HourPerWeek SecondPerHour = SecondPerMinute * MinutePerHour SecondPerDay = SecondPerMinute * MinutePerDay SecondPerWeek = SecondPerMinute * MinutePerWeek MillisecondPerMinute = MillisecondPerSecond * SecondPerMinute MillisecondPerHour = MillisecondPerSecond * SecondPerHour MillisecondPerDay = MillisecondPerSecond * SecondPerDay MillisecondPerWeek = MillisecondPerSecond * SecondPerWeek MicrosecondPerSecond = MicrosecondPerMillisecond * MillisecondPerSecond NanosecondPerMillisecond = NanosecondPerMicrosecond * MicrosecondPerMillisecond NanosecondPerSecond = NanosecondPerMicrosecond * MicrosecondPerSecond // Unités supportées NoUnit Unit = iota Millisecond Second Minute Hour Day Week Month Year // Durée nulle DurationNil = Duration(0) bitsUnit = Duration(4) bitsValue = 64 - bitsUnit maskUnit = 1<