Home | History | Annotate | Download | only in time

Lines Matching defs:abs

435 // abs returns the time t as an absolute time, adjusted by the zone offset.
437 func (t Time) abs() uint64 {
455 // locabs is a combination of the Zone and abs methods,
457 abs uint64) {
475 abs = uint64(sec + (unixToInternal + internalToAbsolute))
505 return absWeekday(t.abs())
509 func absWeekday(abs uint64) Weekday {
511 sec := (abs + uint64(Monday)*secondsPerDay) % secondsPerWeek
576 return absClock(t.abs())
580 func absClock(abs uint64) (hour, min, sec int) {
581 sec = int(abs % secondsPerDay)
591 return int(t.abs()%secondsPerDay) / secondsPerHour
596 return int(t.abs()%secondsPerHour) / secondsPerMinute
601 return int(t.abs() % secondsPerMinute)
936 return absDate(t.abs(), full)
940 func absDate(abs uint64, full bool) (year int, month Month, day int, yday int) {
942 d := abs / secondsPerDay
1360 abs := d * secondsPerDay
1361 abs += uint64(hour*secondsPerHour + min*secondsPerMinute + sec)
1363 unix := int64(abs) + (absoluteToInternal + internalToUnix)