Corrections diverses : collection, datetime, ini
This commit is contained in:
parent
c473e663e8
commit
fc9b29b7f3
3 changed files with 30 additions and 18 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package datetime
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
@ -178,7 +179,10 @@ func (dt datetime) f(f string, l *time.Location) string {
|
|||
}
|
||||
return formatT(dt.t(l), f)
|
||||
}
|
||||
func (dt datetime) str(l *time.Location) string { return dt.f("Y-m-d", l) }
|
||||
func (dt datetime) str(l *time.Location) string {
|
||||
ft, fc := "y-m-d", formatP[dt.p()]
|
||||
return dt.f(fmt.Sprintf("%s %s", ft, fc), l)
|
||||
}
|
||||
|
||||
// DateTime représente une indication de temps (date + heure).
|
||||
type DateTime struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue