github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_17_time.go (about) 1 // Code generated by 'yaegi extract time'. DO NOT EDIT. 2 3 //go:build go1.17 4 // +build go1.17 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 "December": reflect.ValueOf(time.December), 25 "February": reflect.ValueOf(time.February), 26 "FixedZone": reflect.ValueOf(time.FixedZone), 27 "Friday": reflect.ValueOf(time.Friday), 28 "Hour": reflect.ValueOf(time.Hour), 29 "January": reflect.ValueOf(time.January), 30 "July": reflect.ValueOf(time.July), 31 "June": reflect.ValueOf(time.June), 32 "Kitchen": reflect.ValueOf(constant.MakeFromLiteral("\"3:04PM\"", token.STRING, 0)), 33 "Layout": reflect.ValueOf(constant.MakeFromLiteral("\"01/02 03:04:05PM '06 -0700\"", token.STRING, 0)), 34 "LoadLocation": reflect.ValueOf(time.LoadLocation), 35 "LoadLocationFromTZData": reflect.ValueOf(time.LoadLocationFromTZData), 36 "Local": reflect.ValueOf(&time.Local).Elem(), 37 "March": reflect.ValueOf(time.March), 38 "May": reflect.ValueOf(time.May), 39 "Microsecond": reflect.ValueOf(time.Microsecond), 40 "Millisecond": reflect.ValueOf(time.Millisecond), 41 "Minute": reflect.ValueOf(time.Minute), 42 "Monday": reflect.ValueOf(time.Monday), 43 "Nanosecond": reflect.ValueOf(time.Nanosecond), 44 "NewTicker": reflect.ValueOf(time.NewTicker), 45 "NewTimer": reflect.ValueOf(time.NewTimer), 46 "November": reflect.ValueOf(time.November), 47 "Now": reflect.ValueOf(time.Now), 48 "October": reflect.ValueOf(time.October), 49 "Parse": reflect.ValueOf(time.Parse), 50 "ParseDuration": reflect.ValueOf(time.ParseDuration), 51 "ParseInLocation": reflect.ValueOf(time.ParseInLocation), 52 "RFC1123": reflect.ValueOf(constant.MakeFromLiteral("\"Mon, 02 Jan 2006 15:04:05 MST\"", token.STRING, 0)), 53 "RFC1123Z": reflect.ValueOf(constant.MakeFromLiteral("\"Mon, 02 Jan 2006 15:04:05 -0700\"", token.STRING, 0)), 54 "RFC3339": reflect.ValueOf(constant.MakeFromLiteral("\"2006-01-02T15:04:05Z07:00\"", token.STRING, 0)), 55 "RFC3339Nano": reflect.ValueOf(constant.MakeFromLiteral("\"2006-01-02T15:04:05.999999999Z07:00\"", token.STRING, 0)), 56 "RFC822": reflect.ValueOf(constant.MakeFromLiteral("\"02 Jan 06 15:04 MST\"", token.STRING, 0)), 57 "RFC822Z": reflect.ValueOf(constant.MakeFromLiteral("\"02 Jan 06 15:04 -0700\"", token.STRING, 0)), 58 "RFC850": reflect.ValueOf(constant.MakeFromLiteral("\"Monday, 02-Jan-06 15:04:05 MST\"", token.STRING, 0)), 59 "RubyDate": reflect.ValueOf(constant.MakeFromLiteral("\"Mon Jan 02 15:04:05 -0700 2006\"", token.STRING, 0)), 60 "Saturday": reflect.ValueOf(time.Saturday), 61 "Second": reflect.ValueOf(time.Second), 62 "September": reflect.ValueOf(time.September), 63 "Since": reflect.ValueOf(time.Since), 64 "Sleep": reflect.ValueOf(time.Sleep), 65 "Stamp": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05\"", token.STRING, 0)), 66 "StampMicro": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05.000000\"", token.STRING, 0)), 67 "StampMilli": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05.000\"", token.STRING, 0)), 68 "StampNano": reflect.ValueOf(constant.MakeFromLiteral("\"Jan _2 15:04:05.000000000\"", token.STRING, 0)), 69 "Sunday": reflect.ValueOf(time.Sunday), 70 "Thursday": reflect.ValueOf(time.Thursday), 71 "Tick": reflect.ValueOf(time.Tick), 72 "Tuesday": reflect.ValueOf(time.Tuesday), 73 "UTC": reflect.ValueOf(&time.UTC).Elem(), 74 "Unix": reflect.ValueOf(time.Unix), 75 "UnixDate": reflect.ValueOf(constant.MakeFromLiteral("\"Mon Jan _2 15:04:05 MST 2006\"", token.STRING, 0)), 76 "UnixMicro": reflect.ValueOf(time.UnixMicro), 77 "UnixMilli": reflect.ValueOf(time.UnixMilli), 78 "Until": reflect.ValueOf(time.Until), 79 "Wednesday": reflect.ValueOf(time.Wednesday), 80 81 // type definitions 82 "Duration": reflect.ValueOf((*time.Duration)(nil)), 83 "Location": reflect.ValueOf((*time.Location)(nil)), 84 "Month": reflect.ValueOf((*time.Month)(nil)), 85 "ParseError": reflect.ValueOf((*time.ParseError)(nil)), 86 "Ticker": reflect.ValueOf((*time.Ticker)(nil)), 87 "Time": reflect.ValueOf((*time.Time)(nil)), 88 "Timer": reflect.ValueOf((*time.Timer)(nil)), 89 "Weekday": reflect.ValueOf((*time.Weekday)(nil)), 90 } 91 }