• Russ Cox's avatar
    time: do not segment time strings by character class. · 78547ca1
    Russ Cox authored
    instead use pure substring matching to find template values.
    
    this makes stdZulu unnecessary and allows formats
    like "20060102 030405" (used in some internet protocols).
    
    this makes Parse not handle years < 0000 or > 9999 anymore.
    that seems like an okay price to pay, trading hypothetical
    functionality for real functionality.
    
    also changed the comments on the Time struct to use the
    same reference date as the format and parse routines.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/833045
    78547ca1
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...