github.com/embeddedgo/x@v0.0.6-0.20191217015414-d79a36f562e7/time/export_test.go (about)

     1  // Copyright 2013 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  var (
     8  	ParseTimeZone          = parseTimeZone
     9  	SetMono                = (*Time).setMono
    10  	GetMono                = (*Time).mono
    11  	NextStdChunk           = nextStdChunk
    12  )
    13  
    14  // StdChunkNames maps from nextStdChunk results to the matched strings.
    15  var StdChunkNames = map[int]string{
    16  	0:                               "",
    17  	stdLongMonth:                    "January",
    18  	stdMonth:                        "Jan",
    19  	stdNumMonth:                     "1",
    20  	stdZeroMonth:                    "01",
    21  	stdLongWeekDay:                  "Monday",
    22  	stdWeekDay:                      "Mon",
    23  	stdDay:                          "2",
    24  	stdUnderDay:                     "_2",
    25  	stdZeroDay:                      "02",
    26  	stdUnderYearDay:                 "__2",
    27  	stdZeroYearDay:                  "002",
    28  	stdHour:                         "15",
    29  	stdHour12:                       "3",
    30  	stdZeroHour12:                   "03",
    31  	stdMinute:                       "4",
    32  	stdZeroMinute:                   "04",
    33  	stdSecond:                       "5",
    34  	stdZeroSecond:                   "05",
    35  	stdLongYear:                     "2006",
    36  	stdYear:                         "06",
    37  	stdPM:                           "PM",
    38  	stdpm:                           "pm",
    39  	stdTZ:                           "MST",
    40  	stdISO8601TZ:                    "Z0700",
    41  	stdISO8601SecondsTZ:             "Z070000",
    42  	stdISO8601ShortTZ:               "Z07",
    43  	stdISO8601ColonTZ:               "Z07:00",
    44  	stdISO8601ColonSecondsTZ:        "Z07:00:00",
    45  	stdNumTZ:                        "-0700",
    46  	stdNumSecondsTz:                 "-070000",
    47  	stdNumShortTZ:                   "-07",
    48  	stdNumColonTZ:                   "-07:00",
    49  	stdNumColonSecondsTZ:            "-07:00:00",
    50  	stdFracSecond0 | 1<<stdArgShift: ".0",
    51  	stdFracSecond0 | 2<<stdArgShift: ".00",
    52  	stdFracSecond0 | 3<<stdArgShift: ".000",
    53  	stdFracSecond0 | 4<<stdArgShift: ".0000",
    54  	stdFracSecond0 | 5<<stdArgShift: ".00000",
    55  	stdFracSecond0 | 6<<stdArgShift: ".000000",
    56  	stdFracSecond0 | 7<<stdArgShift: ".0000000",
    57  	stdFracSecond0 | 8<<stdArgShift: ".00000000",
    58  	stdFracSecond0 | 9<<stdArgShift: ".000000000",
    59  	stdFracSecond9 | 1<<stdArgShift: ".9",
    60  	stdFracSecond9 | 2<<stdArgShift: ".99",
    61  	stdFracSecond9 | 3<<stdArgShift: ".999",
    62  	stdFracSecond9 | 4<<stdArgShift: ".9999",
    63  	stdFracSecond9 | 5<<stdArgShift: ".99999",
    64  	stdFracSecond9 | 6<<stdArgShift: ".999999",
    65  	stdFracSecond9 | 7<<stdArgShift: ".9999999",
    66  	stdFracSecond9 | 8<<stdArgShift: ".99999999",
    67  	stdFracSecond9 | 9<<stdArgShift: ".999999999",
    68  }