github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_time.go (about) 1 // Code generated by 'yaegi extract time'. DO NOT EDIT. 2 3 //go:build go1.20 4 // +build go1.20 5 6 package stdlib 7 8 import ( 9 "go/constant" 10 "go/token" 11 "reflect" 12 "time" 13 ) 14 15 func init() { 16 Symbols["time/time"] = map[string]reflect.Value{ 17 // function, constant and variable definitions 18 "ANSIC": reflect.ValueOf(constant.MakeFromLiteral("\"Mon Jan _2 15:04:05 2006\"", token.STRING, 0)), 19 "After": reflect.ValueOf(time.After), 20 "AfterFunc": reflect.ValueOf(time.AfterFunc), 21 "April": reflect.ValueOf(time.April), 22 "August": reflect.ValueOf(time.August), 23 "Date": reflect.ValueOf(time.Date), 24 "DateOnly": reflect.ValueOf(constant.MakeFromLiteral("\"2006-01-02\"", token.STRING, 0)), 25 "DateTime": reflect.ValueOf(constant.MakeFromLiteral("\"2006-01-02 15:04:05\"", token.STRING, 0)), 26 "December": reflect.ValueOf(time.December), 27 "February": reflect.ValueOf(time.February), 28 "FixedZone": reflect.ValueOf(time.FixedZone), 29 "Friday": reflect.ValueOf(time.Friday), 30 "Hour": reflect.ValueOf(time.Hour), 31 "January": reflect.ValueOf(time.January), 32 "July": reflect.ValueOf(time.July), 33 "June": reflect.ValueOf(time.June), 34 "Kitchen": reflect.ValueOf(constant.MakeFromLiteral("\"3:04PM\"", token.STRING, 0)), 35 "Layout": reflect.ValueOf(constant.MakeFromLiteral("\"01/02 03:04:05PM '06 -0700\"", token.STRING, 0)), 36 "LoadLocation": reflect.ValueOf(time.LoadLocation), 37 "LoadLocationFromTZData": reflect.ValueOf(time.LoadLocationFromTZData), 38 "Local": reflect.ValueOf(&time.Local).Elem(), 39 "March": reflect.ValueOf(time.March), 40 "May": reflect.ValueOf(time.May), 41 "Microsecond": reflect.ValueOf(time.Microsecond), 42 "Millisecond": reflect.ValueOf(time.Millisecond), 43 "Minute": reflect.ValueOf(time.Minute), 44 "Monday": reflect.ValueOf(time.Monday), 45 "Nanosecond": reflect.ValueOf(time.Nanosecond), 46 "NewTicker": reflect.ValueOf(time.NewTicker), 47 "NewTimer": reflect.ValueOf(time.NewTimer), 48 "November": reflect.ValueOf(time.November), 49 "Now": reflect.ValueOf(time.Now), 50 "October": reflect.ValueOf(time.October), 51 "Parse": reflect.ValueOf(time.Parse), 52 "ParseDuration": reflect.ValueOf(time.ParseDuration), 53 "ParseInLocation": reflect.ValueOf(time.ParseInLocation), 54 "RFC1123": reflect.ValueOf(constant.MakeFromLiteral("\"Mon, 02 Jan 2006 15:04:05 MST\"", token.STRING, 0)), 55 "RFC1123Z": reflect.ValueOf(constant.MakeFromLiteral("\"Mon, 02 Jan 2006 15:04:05 -0700\"", token.STRING, 0)), 56 "RFC3339": reflect.ValueOf(constant.MakeFromLiteral("\"2006-01-02T15:04:05Z07:00\"", token.STRING, 0)), 57 "RFC3339Nano": reflect.ValueOf(constant.MakeFromLiteral("\"2006-01-02T15:04:05.999999999Z07:00\"", token.STRING, 0)), 58 "RFC822": reflect.ValueOf(constant.MakeFromLiteral("\"02 Jan 06 15:04 MST\"", token.STRING, 0)), 59 "RFC822Z": reflect.ValueOf(constant.MakeFromLiteral("\"02 Jan 06 15:04 -0700\"", token.STRING, 0)), 60 "RFC850": reflect.ValueOf(constant.MakeFromLiteral("\"Monday, 02-Jan-06 15:04:05 MST\"", token.STRING, 0)), 61 "RubyDate": reflect.ValueOf(constant.MakeFromLiteral("\"Mon Jan 02 15:04:05 -0700 2006\"", token.STRING, 0)), 62 "Saturday": reflect.ValueOf(time.Saturday), 63 "Second": reflect.ValueOf(time.Second), 64 "September": reflect.ValueOf(time.September), 65 "Since": reflect.ValueOf(time.Since), 66 "Sleep": reflect.ValueOf(time.Sleep), 67 "Stamp": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05\"", token.STRING, 0)), 68 "StampMicro": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05.000000\"", token.STRING, 0)), 69 "StampMilli": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05.000\"", token.STRING, 0)), 70 "StampNano": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05.000000000\"", token.STRING, 0)), 71 "Sunday": reflect.ValueOf(time.Sunday), 72 "Thursday": reflect.ValueOf(time.Thursday), 73 "Tick": reflect.ValueOf(time.Tick), 74 "TimeOnly": reflect.ValueOf(constant.MakeFromLiteral("\"15:04:05\"", token.STRING, 0)), 75 "Tuesday": reflect.ValueOf(time.Tuesday), 76 "UTC": reflect.ValueOf(&time.UTC).Elem(), 77 "Unix": reflect.ValueOf(time.Unix), 78 "UnixDate": reflect.ValueOf(constant.MakeFromLiteral("\"Mon Jan _2 15:04:05 MST 2006\"", token.STRING, 0)), 79 "UnixMicro": reflect.ValueOf(time.UnixMicro), 80 "UnixMilli": reflect.ValueOf(time.UnixMilli), 81 "Until": reflect.ValueOf(time.Until), 82 "Wednesday": reflect.ValueOf(time.Wednesday), 83 84 // type definitions 85 "Duration": reflect.ValueOf((*time.Duration)(nil)), 86 "Location": reflect.ValueOf((*time.Location)(nil)), 87 "Month": reflect.ValueOf((*time.Month)(nil)), 88 "ParseError": reflect.ValueOf((*time.ParseError)(nil)), 89 "Ticker": reflect.ValueOf((*time.Ticker)(nil)), 90 "Time": reflect.ValueOf((*time.Time)(nil)), 91 "Timer": reflect.ValueOf((*time.Timer)(nil)), 92 "Weekday": reflect.ValueOf((*time.Weekday)(nil)), 93 } 94 }