/lib/time/gomod_export.go

https://github.com/qiniu/goplus · Go · 577 lines · 499 code · 76 blank · 2 comment · 0 complexity · 2f1b3917fc620ea408343025d0e60718 MD5 · raw file

  1. // Package time provide Go+ "time" package, as "time" package in Go.
  2. package time
  3. import (
  4. reflect "reflect"
  5. time "time"
  6. gop "github.com/goplus/gop"
  7. qspec "github.com/goplus/gop/exec.spec"
  8. )
  9. func execAfter(_ int, p *gop.Context) {
  10. args := p.GetArgs(1)
  11. ret0 := time.After(args[0].(time.Duration))
  12. p.Ret(1, ret0)
  13. }
  14. func execAfterFunc(_ int, p *gop.Context) {
  15. args := p.GetArgs(2)
  16. ret0 := time.AfterFunc(args[0].(time.Duration), args[1].(func()))
  17. p.Ret(2, ret0)
  18. }
  19. func execDate(_ int, p *gop.Context) {
  20. args := p.GetArgs(8)
  21. ret0 := time.Date(args[0].(int), args[1].(time.Month), args[2].(int), args[3].(int), args[4].(int), args[5].(int), args[6].(int), args[7].(*time.Location))
  22. p.Ret(8, ret0)
  23. }
  24. func execmDurationString(_ int, p *gop.Context) {
  25. args := p.GetArgs(1)
  26. ret0 := args[0].(time.Duration).String()
  27. p.Ret(1, ret0)
  28. }
  29. func execmDurationNanoseconds(_ int, p *gop.Context) {
  30. args := p.GetArgs(1)
  31. ret0 := args[0].(time.Duration).Nanoseconds()
  32. p.Ret(1, ret0)
  33. }
  34. func execmDurationMicroseconds(_ int, p *gop.Context) {
  35. args := p.GetArgs(1)
  36. ret0 := args[0].(time.Duration).Microseconds()
  37. p.Ret(1, ret0)
  38. }
  39. func execmDurationMilliseconds(_ int, p *gop.Context) {
  40. args := p.GetArgs(1)
  41. ret0 := args[0].(time.Duration).Milliseconds()
  42. p.Ret(1, ret0)
  43. }
  44. func execmDurationSeconds(_ int, p *gop.Context) {
  45. args := p.GetArgs(1)
  46. ret0 := args[0].(time.Duration).Seconds()
  47. p.Ret(1, ret0)
  48. }
  49. func execmDurationMinutes(_ int, p *gop.Context) {
  50. args := p.GetArgs(1)
  51. ret0 := args[0].(time.Duration).Minutes()
  52. p.Ret(1, ret0)
  53. }
  54. func execmDurationHours(_ int, p *gop.Context) {
  55. args := p.GetArgs(1)
  56. ret0 := args[0].(time.Duration).Hours()
  57. p.Ret(1, ret0)
  58. }
  59. func execmDurationTruncate(_ int, p *gop.Context) {
  60. args := p.GetArgs(2)
  61. ret0 := args[0].(time.Duration).Truncate(args[1].(time.Duration))
  62. p.Ret(2, ret0)
  63. }
  64. func execmDurationRound(_ int, p *gop.Context) {
  65. args := p.GetArgs(2)
  66. ret0 := args[0].(time.Duration).Round(args[1].(time.Duration))
  67. p.Ret(2, ret0)
  68. }
  69. func execFixedZone(_ int, p *gop.Context) {
  70. args := p.GetArgs(2)
  71. ret0 := time.FixedZone(args[0].(string), args[1].(int))
  72. p.Ret(2, ret0)
  73. }
  74. func execLoadLocation(_ int, p *gop.Context) {
  75. args := p.GetArgs(1)
  76. ret0, ret1 := time.LoadLocation(args[0].(string))
  77. p.Ret(1, ret0, ret1)
  78. }
  79. func execLoadLocationFromTZData(_ int, p *gop.Context) {
  80. args := p.GetArgs(2)
  81. ret0, ret1 := time.LoadLocationFromTZData(args[0].(string), args[1].([]byte))
  82. p.Ret(2, ret0, ret1)
  83. }
  84. func execmLocationString(_ int, p *gop.Context) {
  85. args := p.GetArgs(1)
  86. ret0 := args[0].(*time.Location).String()
  87. p.Ret(1, ret0)
  88. }
  89. func execmMonthString(_ int, p *gop.Context) {
  90. args := p.GetArgs(1)
  91. ret0 := args[0].(time.Month).String()
  92. p.Ret(1, ret0)
  93. }
  94. func execNewTicker(_ int, p *gop.Context) {
  95. args := p.GetArgs(1)
  96. ret0 := time.NewTicker(args[0].(time.Duration))
  97. p.Ret(1, ret0)
  98. }
  99. func execNewTimer(_ int, p *gop.Context) {
  100. args := p.GetArgs(1)
  101. ret0 := time.NewTimer(args[0].(time.Duration))
  102. p.Ret(1, ret0)
  103. }
  104. func execNow(_ int, p *gop.Context) {
  105. ret0 := time.Now()
  106. p.Ret(0, ret0)
  107. }
  108. func execParse(_ int, p *gop.Context) {
  109. args := p.GetArgs(2)
  110. ret0, ret1 := time.Parse(args[0].(string), args[1].(string))
  111. p.Ret(2, ret0, ret1)
  112. }
  113. func execParseDuration(_ int, p *gop.Context) {
  114. args := p.GetArgs(1)
  115. ret0, ret1 := time.ParseDuration(args[0].(string))
  116. p.Ret(1, ret0, ret1)
  117. }
  118. func execmParseErrorError(_ int, p *gop.Context) {
  119. args := p.GetArgs(1)
  120. ret0 := args[0].(*time.ParseError).Error()
  121. p.Ret(1, ret0)
  122. }
  123. func execParseInLocation(_ int, p *gop.Context) {
  124. args := p.GetArgs(3)
  125. ret0, ret1 := time.ParseInLocation(args[0].(string), args[1].(string), args[2].(*time.Location))
  126. p.Ret(3, ret0, ret1)
  127. }
  128. func execSince(_ int, p *gop.Context) {
  129. args := p.GetArgs(1)
  130. ret0 := time.Since(args[0].(time.Time))
  131. p.Ret(1, ret0)
  132. }
  133. func execSleep(_ int, p *gop.Context) {
  134. args := p.GetArgs(1)
  135. time.Sleep(args[0].(time.Duration))
  136. p.PopN(1)
  137. }
  138. func execTick(_ int, p *gop.Context) {
  139. args := p.GetArgs(1)
  140. ret0 := time.Tick(args[0].(time.Duration))
  141. p.Ret(1, ret0)
  142. }
  143. func execmTickerStop(_ int, p *gop.Context) {
  144. args := p.GetArgs(1)
  145. args[0].(*time.Ticker).Stop()
  146. p.PopN(1)
  147. }
  148. func execmTimeString(_ int, p *gop.Context) {
  149. args := p.GetArgs(1)
  150. ret0 := args[0].(time.Time).String()
  151. p.Ret(1, ret0)
  152. }
  153. func execmTimeFormat(_ int, p *gop.Context) {
  154. args := p.GetArgs(2)
  155. ret0 := args[0].(time.Time).Format(args[1].(string))
  156. p.Ret(2, ret0)
  157. }
  158. func execmTimeAppendFormat(_ int, p *gop.Context) {
  159. args := p.GetArgs(3)
  160. ret0 := args[0].(time.Time).AppendFormat(args[1].([]byte), args[2].(string))
  161. p.Ret(3, ret0)
  162. }
  163. func execmTimeAfter(_ int, p *gop.Context) {
  164. args := p.GetArgs(2)
  165. ret0 := args[0].(time.Time).After(args[1].(time.Time))
  166. p.Ret(2, ret0)
  167. }
  168. func execmTimeBefore(_ int, p *gop.Context) {
  169. args := p.GetArgs(2)
  170. ret0 := args[0].(time.Time).Before(args[1].(time.Time))
  171. p.Ret(2, ret0)
  172. }
  173. func execmTimeEqual(_ int, p *gop.Context) {
  174. args := p.GetArgs(2)
  175. ret0 := args[0].(time.Time).Equal(args[1].(time.Time))
  176. p.Ret(2, ret0)
  177. }
  178. func execmTimeIsZero(_ int, p *gop.Context) {
  179. args := p.GetArgs(1)
  180. ret0 := args[0].(time.Time).IsZero()
  181. p.Ret(1, ret0)
  182. }
  183. func execmTimeDate(_ int, p *gop.Context) {
  184. args := p.GetArgs(1)
  185. ret0, ret1, ret2 := args[0].(time.Time).Date()
  186. p.Ret(1, ret0, ret1, ret2)
  187. }
  188. func execmTimeYear(_ int, p *gop.Context) {
  189. args := p.GetArgs(1)
  190. ret0 := args[0].(time.Time).Year()
  191. p.Ret(1, ret0)
  192. }
  193. func execmTimeMonth(_ int, p *gop.Context) {
  194. args := p.GetArgs(1)
  195. ret0 := args[0].(time.Time).Month()
  196. p.Ret(1, ret0)
  197. }
  198. func execmTimeDay(_ int, p *gop.Context) {
  199. args := p.GetArgs(1)
  200. ret0 := args[0].(time.Time).Day()
  201. p.Ret(1, ret0)
  202. }
  203. func execmTimeWeekday(_ int, p *gop.Context) {
  204. args := p.GetArgs(1)
  205. ret0 := args[0].(time.Time).Weekday()
  206. p.Ret(1, ret0)
  207. }
  208. func execmTimeISOWeek(_ int, p *gop.Context) {
  209. args := p.GetArgs(1)
  210. ret0, ret1 := args[0].(time.Time).ISOWeek()
  211. p.Ret(1, ret0, ret1)
  212. }
  213. func execmTimeClock(_ int, p *gop.Context) {
  214. args := p.GetArgs(1)
  215. ret0, ret1, ret2 := args[0].(time.Time).Clock()
  216. p.Ret(1, ret0, ret1, ret2)
  217. }
  218. func execmTimeHour(_ int, p *gop.Context) {
  219. args := p.GetArgs(1)
  220. ret0 := args[0].(time.Time).Hour()
  221. p.Ret(1, ret0)
  222. }
  223. func execmTimeMinute(_ int, p *gop.Context) {
  224. args := p.GetArgs(1)
  225. ret0 := args[0].(time.Time).Minute()
  226. p.Ret(1, ret0)
  227. }
  228. func execmTimeSecond(_ int, p *gop.Context) {
  229. args := p.GetArgs(1)
  230. ret0 := args[0].(time.Time).Second()
  231. p.Ret(1, ret0)
  232. }
  233. func execmTimeNanosecond(_ int, p *gop.Context) {
  234. args := p.GetArgs(1)
  235. ret0 := args[0].(time.Time).Nanosecond()
  236. p.Ret(1, ret0)
  237. }
  238. func execmTimeYearDay(_ int, p *gop.Context) {
  239. args := p.GetArgs(1)
  240. ret0 := args[0].(time.Time).YearDay()
  241. p.Ret(1, ret0)
  242. }
  243. func execmTimeAdd(_ int, p *gop.Context) {
  244. args := p.GetArgs(2)
  245. ret0 := args[0].(time.Time).Add(args[1].(time.Duration))
  246. p.Ret(2, ret0)
  247. }
  248. func execmTimeSub(_ int, p *gop.Context) {
  249. args := p.GetArgs(2)
  250. ret0 := args[0].(time.Time).Sub(args[1].(time.Time))
  251. p.Ret(2, ret0)
  252. }
  253. func execmTimeAddDate(_ int, p *gop.Context) {
  254. args := p.GetArgs(4)
  255. ret0 := args[0].(time.Time).AddDate(args[1].(int), args[2].(int), args[3].(int))
  256. p.Ret(4, ret0)
  257. }
  258. func execmTimeUTC(_ int, p *gop.Context) {
  259. args := p.GetArgs(1)
  260. ret0 := args[0].(time.Time).UTC()
  261. p.Ret(1, ret0)
  262. }
  263. func execmTimeLocal(_ int, p *gop.Context) {
  264. args := p.GetArgs(1)
  265. ret0 := args[0].(time.Time).Local()
  266. p.Ret(1, ret0)
  267. }
  268. func execmTimeIn(_ int, p *gop.Context) {
  269. args := p.GetArgs(2)
  270. ret0 := args[0].(time.Time).In(args[1].(*time.Location))
  271. p.Ret(2, ret0)
  272. }
  273. func execmTimeLocation(_ int, p *gop.Context) {
  274. args := p.GetArgs(1)
  275. ret0 := args[0].(time.Time).Location()
  276. p.Ret(1, ret0)
  277. }
  278. func execmTimeZone(_ int, p *gop.Context) {
  279. args := p.GetArgs(1)
  280. ret0, ret1 := args[0].(time.Time).Zone()
  281. p.Ret(1, ret0, ret1)
  282. }
  283. func execmTimeUnix(_ int, p *gop.Context) {
  284. args := p.GetArgs(1)
  285. ret0 := args[0].(time.Time).Unix()
  286. p.Ret(1, ret0)
  287. }
  288. func execmTimeUnixNano(_ int, p *gop.Context) {
  289. args := p.GetArgs(1)
  290. ret0 := args[0].(time.Time).UnixNano()
  291. p.Ret(1, ret0)
  292. }
  293. func execmTimeMarshalBinary(_ int, p *gop.Context) {
  294. args := p.GetArgs(1)
  295. ret0, ret1 := args[0].(time.Time).MarshalBinary()
  296. p.Ret(1, ret0, ret1)
  297. }
  298. func execmTimeUnmarshalBinary(_ int, p *gop.Context) {
  299. args := p.GetArgs(2)
  300. ret0 := args[0].(*time.Time).UnmarshalBinary(args[1].([]byte))
  301. p.Ret(2, ret0)
  302. }
  303. func execmTimeGobEncode(_ int, p *gop.Context) {
  304. args := p.GetArgs(1)
  305. ret0, ret1 := args[0].(time.Time).GobEncode()
  306. p.Ret(1, ret0, ret1)
  307. }
  308. func execmTimeGobDecode(_ int, p *gop.Context) {
  309. args := p.GetArgs(2)
  310. ret0 := args[0].(*time.Time).GobDecode(args[1].([]byte))
  311. p.Ret(2, ret0)
  312. }
  313. func execmTimeMarshalJSON(_ int, p *gop.Context) {
  314. args := p.GetArgs(1)
  315. ret0, ret1 := args[0].(time.Time).MarshalJSON()
  316. p.Ret(1, ret0, ret1)
  317. }
  318. func execmTimeUnmarshalJSON(_ int, p *gop.Context) {
  319. args := p.GetArgs(2)
  320. ret0 := args[0].(*time.Time).UnmarshalJSON(args[1].([]byte))
  321. p.Ret(2, ret0)
  322. }
  323. func execmTimeMarshalText(_ int, p *gop.Context) {
  324. args := p.GetArgs(1)
  325. ret0, ret1 := args[0].(time.Time).MarshalText()
  326. p.Ret(1, ret0, ret1)
  327. }
  328. func execmTimeUnmarshalText(_ int, p *gop.Context) {
  329. args := p.GetArgs(2)
  330. ret0 := args[0].(*time.Time).UnmarshalText(args[1].([]byte))
  331. p.Ret(2, ret0)
  332. }
  333. func execmTimeTruncate(_ int, p *gop.Context) {
  334. args := p.GetArgs(2)
  335. ret0 := args[0].(time.Time).Truncate(args[1].(time.Duration))
  336. p.Ret(2, ret0)
  337. }
  338. func execmTimeRound(_ int, p *gop.Context) {
  339. args := p.GetArgs(2)
  340. ret0 := args[0].(time.Time).Round(args[1].(time.Duration))
  341. p.Ret(2, ret0)
  342. }
  343. func execmTimerStop(_ int, p *gop.Context) {
  344. args := p.GetArgs(1)
  345. ret0 := args[0].(*time.Timer).Stop()
  346. p.Ret(1, ret0)
  347. }
  348. func execmTimerReset(_ int, p *gop.Context) {
  349. args := p.GetArgs(2)
  350. ret0 := args[0].(*time.Timer).Reset(args[1].(time.Duration))
  351. p.Ret(2, ret0)
  352. }
  353. func execUnix(_ int, p *gop.Context) {
  354. args := p.GetArgs(2)
  355. ret0 := time.Unix(args[0].(int64), args[1].(int64))
  356. p.Ret(2, ret0)
  357. }
  358. func execUntil(_ int, p *gop.Context) {
  359. args := p.GetArgs(1)
  360. ret0 := time.Until(args[0].(time.Time))
  361. p.Ret(1, ret0)
  362. }
  363. func execmWeekdayString(_ int, p *gop.Context) {
  364. args := p.GetArgs(1)
  365. ret0 := args[0].(time.Weekday).String()
  366. p.Ret(1, ret0)
  367. }
  368. // I is a Go package instance.
  369. var I = gop.NewGoPackage("time")
  370. func init() {
  371. I.RegisterFuncs(
  372. I.Func("After", time.After, execAfter),
  373. I.Func("AfterFunc", time.AfterFunc, execAfterFunc),
  374. I.Func("Date", time.Date, execDate),
  375. I.Func("(Duration).String", (time.Duration).String, execmDurationString),
  376. I.Func("(Duration).Nanoseconds", (time.Duration).Nanoseconds, execmDurationNanoseconds),
  377. I.Func("(Duration).Microseconds", (time.Duration).Microseconds, execmDurationMicroseconds),
  378. I.Func("(Duration).Milliseconds", (time.Duration).Milliseconds, execmDurationMilliseconds),
  379. I.Func("(Duration).Seconds", (time.Duration).Seconds, execmDurationSeconds),
  380. I.Func("(Duration).Minutes", (time.Duration).Minutes, execmDurationMinutes),
  381. I.Func("(Duration).Hours", (time.Duration).Hours, execmDurationHours),
  382. I.Func("(Duration).Truncate", (time.Duration).Truncate, execmDurationTruncate),
  383. I.Func("(Duration).Round", (time.Duration).Round, execmDurationRound),
  384. I.Func("FixedZone", time.FixedZone, execFixedZone),
  385. I.Func("LoadLocation", time.LoadLocation, execLoadLocation),
  386. I.Func("LoadLocationFromTZData", time.LoadLocationFromTZData, execLoadLocationFromTZData),
  387. I.Func("(*Location).String", (*time.Location).String, execmLocationString),
  388. I.Func("(Month).String", (time.Month).String, execmMonthString),
  389. I.Func("NewTicker", time.NewTicker, execNewTicker),
  390. I.Func("NewTimer", time.NewTimer, execNewTimer),
  391. I.Func("Now", time.Now, execNow),
  392. I.Func("Parse", time.Parse, execParse),
  393. I.Func("ParseDuration", time.ParseDuration, execParseDuration),
  394. I.Func("(*ParseError).Error", (*time.ParseError).Error, execmParseErrorError),
  395. I.Func("ParseInLocation", time.ParseInLocation, execParseInLocation),
  396. I.Func("Since", time.Since, execSince),
  397. I.Func("Sleep", time.Sleep, execSleep),
  398. I.Func("Tick", time.Tick, execTick),
  399. I.Func("(*Ticker).Stop", (*time.Ticker).Stop, execmTickerStop),
  400. I.Func("(Time).String", (time.Time).String, execmTimeString),
  401. I.Func("(Time).Format", (time.Time).Format, execmTimeFormat),
  402. I.Func("(Time).AppendFormat", (time.Time).AppendFormat, execmTimeAppendFormat),
  403. I.Func("(Time).After", (time.Time).After, execmTimeAfter),
  404. I.Func("(Time).Before", (time.Time).Before, execmTimeBefore),
  405. I.Func("(Time).Equal", (time.Time).Equal, execmTimeEqual),
  406. I.Func("(Time).IsZero", (time.Time).IsZero, execmTimeIsZero),
  407. I.Func("(Time).Date", (time.Time).Date, execmTimeDate),
  408. I.Func("(Time).Year", (time.Time).Year, execmTimeYear),
  409. I.Func("(Time).Month", (time.Time).Month, execmTimeMonth),
  410. I.Func("(Time).Day", (time.Time).Day, execmTimeDay),
  411. I.Func("(Time).Weekday", (time.Time).Weekday, execmTimeWeekday),
  412. I.Func("(Time).ISOWeek", (time.Time).ISOWeek, execmTimeISOWeek),
  413. I.Func("(Time).Clock", (time.Time).Clock, execmTimeClock),
  414. I.Func("(Time).Hour", (time.Time).Hour, execmTimeHour),
  415. I.Func("(Time).Minute", (time.Time).Minute, execmTimeMinute),
  416. I.Func("(Time).Second", (time.Time).Second, execmTimeSecond),
  417. I.Func("(Time).Nanosecond", (time.Time).Nanosecond, execmTimeNanosecond),
  418. I.Func("(Time).YearDay", (time.Time).YearDay, execmTimeYearDay),
  419. I.Func("(Time).Add", (time.Time).Add, execmTimeAdd),
  420. I.Func("(Time).Sub", (time.Time).Sub, execmTimeSub),
  421. I.Func("(Time).AddDate", (time.Time).AddDate, execmTimeAddDate),
  422. I.Func("(Time).UTC", (time.Time).UTC, execmTimeUTC),
  423. I.Func("(Time).Local", (time.Time).Local, execmTimeLocal),
  424. I.Func("(Time).In", (time.Time).In, execmTimeIn),
  425. I.Func("(Time).Location", (time.Time).Location, execmTimeLocation),
  426. I.Func("(Time).Zone", (time.Time).Zone, execmTimeZone),
  427. I.Func("(Time).Unix", (time.Time).Unix, execmTimeUnix),
  428. I.Func("(Time).UnixNano", (time.Time).UnixNano, execmTimeUnixNano),
  429. I.Func("(Time).MarshalBinary", (time.Time).MarshalBinary, execmTimeMarshalBinary),
  430. I.Func("(*Time).UnmarshalBinary", (*time.Time).UnmarshalBinary, execmTimeUnmarshalBinary),
  431. I.Func("(Time).GobEncode", (time.Time).GobEncode, execmTimeGobEncode),
  432. I.Func("(*Time).GobDecode", (*time.Time).GobDecode, execmTimeGobDecode),
  433. I.Func("(Time).MarshalJSON", (time.Time).MarshalJSON, execmTimeMarshalJSON),
  434. I.Func("(*Time).UnmarshalJSON", (*time.Time).UnmarshalJSON, execmTimeUnmarshalJSON),
  435. I.Func("(Time).MarshalText", (time.Time).MarshalText, execmTimeMarshalText),
  436. I.Func("(*Time).UnmarshalText", (*time.Time).UnmarshalText, execmTimeUnmarshalText),
  437. I.Func("(Time).Truncate", (time.Time).Truncate, execmTimeTruncate),
  438. I.Func("(Time).Round", (time.Time).Round, execmTimeRound),
  439. I.Func("(*Timer).Stop", (*time.Timer).Stop, execmTimerStop),
  440. I.Func("(*Timer).Reset", (*time.Timer).Reset, execmTimerReset),
  441. I.Func("Unix", time.Unix, execUnix),
  442. I.Func("Until", time.Until, execUntil),
  443. I.Func("(Weekday).String", (time.Weekday).String, execmWeekdayString),
  444. )
  445. I.RegisterVars(
  446. I.Var("Local", &time.Local),
  447. I.Var("UTC", &time.UTC),
  448. )
  449. I.RegisterTypes(
  450. I.Type("Duration", reflect.TypeOf((*time.Duration)(nil)).Elem()),
  451. I.Type("Location", reflect.TypeOf((*time.Location)(nil)).Elem()),
  452. I.Type("Month", reflect.TypeOf((*time.Month)(nil)).Elem()),
  453. I.Type("ParseError", reflect.TypeOf((*time.ParseError)(nil)).Elem()),
  454. I.Type("Ticker", reflect.TypeOf((*time.Ticker)(nil)).Elem()),
  455. I.Type("Time", reflect.TypeOf((*time.Time)(nil)).Elem()),
  456. I.Type("Timer", reflect.TypeOf((*time.Timer)(nil)).Elem()),
  457. I.Type("Weekday", reflect.TypeOf((*time.Weekday)(nil)).Elem()),
  458. )
  459. I.RegisterConsts(
  460. I.Const("ANSIC", qspec.ConstBoundString, time.ANSIC),
  461. I.Const("April", qspec.Int, time.April),
  462. I.Const("August", qspec.Int, time.August),
  463. I.Const("December", qspec.Int, time.December),
  464. I.Const("February", qspec.Int, time.February),
  465. I.Const("Friday", qspec.Int, time.Friday),
  466. I.Const("Hour", qspec.Int64, time.Hour),
  467. I.Const("January", qspec.Int, time.January),
  468. I.Const("July", qspec.Int, time.July),
  469. I.Const("June", qspec.Int, time.June),
  470. I.Const("Kitchen", qspec.ConstBoundString, time.Kitchen),
  471. I.Const("March", qspec.Int, time.March),
  472. I.Const("May", qspec.Int, time.May),
  473. I.Const("Microsecond", qspec.Int64, time.Microsecond),
  474. I.Const("Millisecond", qspec.Int64, time.Millisecond),
  475. I.Const("Minute", qspec.Int64, time.Minute),
  476. I.Const("Monday", qspec.Int, time.Monday),
  477. I.Const("Nanosecond", qspec.Int64, time.Nanosecond),
  478. I.Const("November", qspec.Int, time.November),
  479. I.Const("October", qspec.Int, time.October),
  480. I.Const("RFC1123", qspec.ConstBoundString, time.RFC1123),
  481. I.Const("RFC1123Z", qspec.ConstBoundString, time.RFC1123Z),
  482. I.Const("RFC3339", qspec.ConstBoundString, time.RFC3339),
  483. I.Const("RFC3339Nano", qspec.ConstBoundString, time.RFC3339Nano),
  484. I.Const("RFC822", qspec.ConstBoundString, time.RFC822),
  485. I.Const("RFC822Z", qspec.ConstBoundString, time.RFC822Z),
  486. I.Const("RFC850", qspec.ConstBoundString, time.RFC850),
  487. I.Const("RubyDate", qspec.ConstBoundString, time.RubyDate),
  488. I.Const("Saturday", qspec.Int, time.Saturday),
  489. I.Const("Second", qspec.Int64, time.Second),
  490. I.Const("September", qspec.Int, time.September),
  491. I.Const("Stamp", qspec.ConstBoundString, time.Stamp),
  492. I.Const("StampMicro", qspec.ConstBoundString, time.StampMicro),
  493. I.Const("StampMilli", qspec.ConstBoundString, time.StampMilli),
  494. I.Const("StampNano", qspec.ConstBoundString, time.StampNano),
  495. I.Const("Sunday", qspec.Int, time.Sunday),
  496. I.Const("Thursday", qspec.Int, time.Thursday),
  497. I.Const("Tuesday", qspec.Int, time.Tuesday),
  498. I.Const("UnixDate", qspec.ConstBoundString, time.UnixDate),
  499. I.Const("Wednesday", qspec.Int, time.Wednesday),
  500. )
  501. }