Guest User

Untitled

a guest
May 16th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. // Copyright 2010 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4.  
  5. package time
  6.  
  7. const (
  8. _ = iota
  9. stdLongMonth = iota + stdNeedDate // "January"
  10. stdMonth // "Jan"
  11. stdNumMonth // "1"
  12. stdZeroMonth // "01"
  13. stdLongWeekDay // "Monday"
  14. stdWeekDay // "Mon"
  15. stdDay // "2"
  16. stdUnderDay // "_2"
  17. stdZeroDay // "02"
  18. stdHour = iota + stdNeedClock // "15"
  19. stdHour12 // "3"
  20. stdZeroHour12 // "03"
  21. stdMinute // "4"
  22. stdZeroMinute // "04"
  23. stdSecond // "5"
  24. stdZeroSecond // "05"
  25. stdLongYear = iota + stdNeedDate // "2006"
  26. stdYear // "06"
  27. stdPM = iota + stdNeedClock // "PM"
  28. stdpm // "pm"
  29. stdTZ = iota // "MST"
  30. stdISO8601TZ // "Z0700" // prints Z for UTC
  31. stdISO8601SecondsTZ // "Z070000"
  32. stdISO8601ShortTZ // "Z07"
  33. stdISO8601ColonTZ // "Z07:00" // prints Z for UTC
  34. stdISO8601ColonSecondsTZ // "Z07:00:00"
  35. stdNumTZ // "-0700" // always numeric
  36. stdNumSecondsTz // "-070000"
  37. stdNumShortTZ // "-07" // always numeric
  38. stdNumColonTZ // "-07:00" // always numeric
  39. stdNumColonSecondsTZ // "-07:00:00"
  40. stdFracSecond0 // ".0", ".00", ... , trailing zeros included
  41. stdFracSecond9 // ".9", ".99", ..., trailing zeros omitted
  42.  
  43. stdNeedDate = 1 << 8 // need month, day, year
  44. stdNeedClock = 2 << 8 // need hour, minute, second
  45. stdArgShift = 16 // extra argument in high bits, above low stdArgShift
  46. stdMask = 1<<stdArgShift - 1 // mask out argument
  47. )
Add Comment
Please, Sign In to add comment