Lines Matching defs:Time
139 type Time struct { struct
151 wall uint64
152 ext int64
159 loc *Location
175 func (t *Time) nsec() int32 {
180 func (t *Time) sec() int64 {
188 func (t *Time) unixSec() int64 { return t.sec() + internalToUnix }
191 func (t *Time) addSec(d int64) {
216 func (t *Time) setLoc(loc *Location) {
225 func (t *Time) stripMono() {
236 func (t *Time) setMono(m int64) {
252 func (t *Time) mono() int64 {
260 func (t Time) After(u Time) bool {
270 func (t Time) Before(u Time) bool {
281 func (t Time) Compare(u Time) int {
305 func (t Time) Equal(u Time) bool {
465 func (t Time) IsZero() bool {
471 func (t Time) abs() uint64 {
491 func (t Time) locabs() (name string, offset int, abs uint64) {
514 func (t Time) Date() (year int, month Month, day int) {
520 func (t Time) Year() int {
526 func (t Time) Month() Month {
532 func (t Time) Day() int {
538 func (t Time) Weekday() Weekday {
553 func (t Time) ISOWeek() (year, week int) {
577 func (t Time) Clock() (hour, min, sec int) {
602 func (t Time) Hour() int {
607 func (t Time) Minute() int {
612 func (t Time) Second() int {
618 func (t Time) Nanosecond() int {
624 func (t Time) YearDay() int {
886 func (t Time) Add(d Duration) Time {
914 func (t Time) Sub(u Time) Duration {
943 func Since(t Time) Duration {
953 func Until(t Time) Duration {
978 func (t Time) AddDate(years int, months int, days int) Time {
996 func (t Time) date(full bool) (year int, month Month, day int, yday int) {
1177 func (t Time) UTC() Time {
1183 func (t Time) Local() Time {
1193 func (t Time) In(loc *Location) Time {
1202 func (t Time) Location() *Location {
1212 func (t Time) Zone() (name string, offset int) {
1222 func (t Time) ZoneBounds() (start, end Time) {
1241 func (t Time) Unix() int64 {
1250 func (t Time) UnixMilli() int64 {
1259 func (t Time) UnixMicro() int64 {
1269 func (t Time) UnixNano() int64 {
1279 func (t Time) MarshalBinary() ([]byte, error) {
1327 func (t *Time) UnmarshalBinary(data []byte) error {
1379 func (t Time) GobEncode() ([]byte, error) {
1384 func (t *Time) GobDecode(data []byte) error {
1392 func (t Time) MarshalJSON() ([]byte, error) {
1405 func (t *Time) UnmarshalJSON(data []byte) error {
1423 func (t Time) MarshalText() ([]byte, error) {
1434 func (t *Time) UnmarshalText(data []byte) error {
1471 func (t Time) IsDST() bool {
1577 func (t Time) Truncate(d Duration) Time {
1594 func (t Time) Round(d Duration) Time {
1609 func div(t Time, d Duration) (qmod2 int, r Duration) {