Every line of 'golang time' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
1152 func (s *Delete_commandContext) Time() ITimeContext { 1153 var t = s.GetTypedRuleContext(reflect.TypeOf((*ITimeContext)(nil)).Elem(), 0) 1154 1155 if t == nil { 1156 return nil 1157 } 1158 1159 return t.(ITimeContext) 1160 }
176 func goTime(t C.pn_timestamp_t) time.Time { 177 if t == 0 { 178 return time.Time{} 179 } 180 return time.Unix(0, int64(t)*int64(time.Millisecond)) 181 }
59 func (x Expr) Time(n gen.Node, defVal ...time.Time) (v time.Time) { 60 // TBD 61 return 62 }
113 func I32Time(c int32) string { 114 return I64Time(int64(c)) 115 }
774 func (u UnixTime) Time() time.Time { 775 return FromUnixTime(u) 776 }
8 func main() { 9 timeAsString := "2012-01-22" 10 fmt.Println(time.Parse("2006-01-01_this-does-not-compile", timeAsString)) 11 }
35 func Time(t time.Time) time.Time { 36 return time.Unix(0, t.UnixNano()/1e6*1e6) 37 }
390 func (t Time) Time() time.Time { 391 return FromTime(t) 392 }
672 func (t MonotonicTime) Time() time.Time { 673 return time.Time(t) 674 }
138 func (t TimeSinceEpoch) Time() time.Time { 139 return time.Time(t) 140 }