-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
time.go
75 lines (72 loc) · 3.16 KB
/
time.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package packages
import (
"reflect"
"time"
"github.com/mattn/anko/env"
)
func init() {
env.Packages["time"] = map[string]reflect.Value{
"ANSIC": reflect.ValueOf(time.ANSIC),
"After": reflect.ValueOf(time.After),
"AfterFunc": reflect.ValueOf(time.AfterFunc),
"April": reflect.ValueOf(time.April),
"August": reflect.ValueOf(time.August),
"Date": reflect.ValueOf(time.Date),
"December": reflect.ValueOf(time.December),
"February": reflect.ValueOf(time.February),
"FixedZone": reflect.ValueOf(time.FixedZone),
"Friday": reflect.ValueOf(time.Friday),
"Hour": reflect.ValueOf(time.Hour),
"January": reflect.ValueOf(time.January),
"July": reflect.ValueOf(time.July),
"June": reflect.ValueOf(time.June),
"Kitchen": reflect.ValueOf(time.Kitchen),
"LoadLocation": reflect.ValueOf(time.LoadLocation),
"March": reflect.ValueOf(time.March),
"May": reflect.ValueOf(time.May),
"Microsecond": reflect.ValueOf(time.Microsecond),
"Millisecond": reflect.ValueOf(time.Millisecond),
"Minute": reflect.ValueOf(time.Minute),
"Monday": reflect.ValueOf(time.Monday),
"Nanosecond": reflect.ValueOf(time.Nanosecond),
"NewTicker": reflect.ValueOf(time.NewTicker),
"NewTimer": reflect.ValueOf(time.NewTimer),
"November": reflect.ValueOf(time.November),
"Now": reflect.ValueOf(time.Now),
"October": reflect.ValueOf(time.October),
"Parse": reflect.ValueOf(time.Parse),
"ParseDuration": reflect.ValueOf(time.ParseDuration),
"ParseInLocation": reflect.ValueOf(time.ParseInLocation),
"RFC1123": reflect.ValueOf(time.RFC1123),
"RFC1123Z": reflect.ValueOf(time.RFC1123Z),
"RFC3339": reflect.ValueOf(time.RFC3339),
"RFC3339Nano": reflect.ValueOf(time.RFC3339Nano),
"RFC822": reflect.ValueOf(time.RFC822),
"RFC822Z": reflect.ValueOf(time.RFC822Z),
"RFC850": reflect.ValueOf(time.RFC850),
"RubyDate": reflect.ValueOf(time.RubyDate),
"Saturday": reflect.ValueOf(time.Saturday),
"Second": reflect.ValueOf(time.Second),
"September": reflect.ValueOf(time.September),
"Since": reflect.ValueOf(time.Since),
"Sleep": reflect.ValueOf(time.Sleep),
"Stamp": reflect.ValueOf(time.Stamp),
"StampMicro": reflect.ValueOf(time.StampMicro),
"StampMilli": reflect.ValueOf(time.StampMilli),
"StampNano": reflect.ValueOf(time.StampNano),
"Sunday": reflect.ValueOf(time.Sunday),
"Thursday": reflect.ValueOf(time.Thursday),
"Tick": reflect.ValueOf(time.Tick),
"Tuesday": reflect.ValueOf(time.Tuesday),
"Unix": reflect.ValueOf(time.Unix),
"UnixDate": reflect.ValueOf(time.UnixDate),
"Wednesday": reflect.ValueOf(time.Wednesday),
}
env.PackageTypes["time"] = map[string]reflect.Type{
"Duration": reflect.TypeOf(time.Duration(0)),
"Ticker": reflect.TypeOf(time.Ticker{}),
"Time": reflect.TypeOf(time.Time{}),
}
timeGo18()
timeGo110()
}