Correction des constantes du module datetime
This commit is contained in:
parent
fc9b29b7f3
commit
f8c3668bda
|
@ -29,7 +29,9 @@ const (
|
||||||
MicrosecondPerSecond = MicrosecondPerMillisecond * MillisecondPerSecond
|
MicrosecondPerSecond = MicrosecondPerMillisecond * MillisecondPerSecond
|
||||||
NanosecondPerMillisecond = NanosecondPerMicrosecond * MicrosecondPerMillisecond
|
NanosecondPerMillisecond = NanosecondPerMicrosecond * MicrosecondPerMillisecond
|
||||||
NanosecondPerSecond = NanosecondPerMicrosecond * MicrosecondPerSecond
|
NanosecondPerSecond = NanosecondPerMicrosecond * MicrosecondPerSecond
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
// Unités supportées
|
// Unités supportées
|
||||||
NoUnit Unit = iota
|
NoUnit Unit = iota
|
||||||
Millisecond
|
Millisecond
|
||||||
|
@ -49,7 +51,9 @@ const (
|
||||||
|
|
||||||
maskUnit = 1<<bitsUnit - 1
|
maskUnit = 1<<bitsUnit - 1
|
||||||
maskValue = ^maskUnit
|
maskValue = ^maskUnit
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
// Précisions supportées
|
// Précisions supportées
|
||||||
NoPrecision Precision = iota
|
NoPrecision Precision = iota
|
||||||
PrecisionMillisecond
|
PrecisionMillisecond
|
||||||
|
@ -77,7 +81,9 @@ const (
|
||||||
maskYear = ^(maskDay | maskMonth)
|
maskYear = ^(maskDay | maskMonth)
|
||||||
|
|
||||||
dateNil = date(0)
|
dateNil = date(0)
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
// Mois
|
// Mois
|
||||||
January = uint(1) + iota
|
January = uint(1) + iota
|
||||||
February
|
February
|
||||||
|
@ -91,7 +97,9 @@ const (
|
||||||
October
|
October
|
||||||
November
|
November
|
||||||
December
|
December
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
// Jours de la semaine
|
// Jours de la semaine
|
||||||
Sunday = uint(iota)
|
Sunday = uint(iota)
|
||||||
Monday
|
Monday
|
||||||
|
@ -108,12 +116,12 @@ var (
|
||||||
NoUnit: "",
|
NoUnit: "",
|
||||||
Millisecond: "ms",
|
Millisecond: "ms",
|
||||||
Second: "s",
|
Second: "s",
|
||||||
Minute: "m",
|
Minute: "mn",
|
||||||
Hour: "h",
|
Hour: "h",
|
||||||
Day: "J",
|
Day: "d",
|
||||||
Week: "S",
|
Week: "w",
|
||||||
Month: "M",
|
Month: "m",
|
||||||
Year: "A",
|
Year: "y",
|
||||||
}
|
}
|
||||||
|
|
||||||
maskDate = map[string]date{
|
maskDate = map[string]date{
|
||||||
|
|
Loading…
Reference in New Issue