Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BasicISORegex = regexp.MustCompile(`^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$`)
BasicISORegex is used to parse simple ISO 8601 dates.
var BracketRegex = regexp.MustCompile(`\[([^\[\]]*)\]`)
BracketRegex is used to find brackets in formats.
var ChunkOffset = regexp.MustCompile(`(?i)([\+\-]|\d\d)`)
ChunkOffset is used to parse timezone offset.
var ExtendedISORegex = regexp.MustCompile(`^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$`)
ExtendedISORegex is used to parse extends ISO 8601 dates. 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
var LocaleRegex = regexp.MustCompile(`(\[[^\[]*\])|(\\)?(LT[S]?|LL?L?L?|l{1,4})`)
LocaleRegex is used to parse locale specific formats out of tokens.
var MatchMeridiem = regexp.MustCompile(`(?i)(am|pm)`)
MatchMeridiem is used to match meridiem field.
var MatchOne = regexp.MustCompile(`\d`)
MatchOne is used to match a single digit.
var MatchOneToFour = regexp.MustCompile(`\d{1,4}`)
MatchOneToFour is used to match one to four digits.
var MatchOneToSix = regexp.MustCompile(`[+-]?\d{1,6}`)
MatchOneToSix is used to match one to 6 digits.
var MatchOneToThree = regexp.MustCompile(`\d{1,3}`)
MatchOneToThree is used to match one to three digits.
var MatchOneToTwo = regexp.MustCompile(`\d\d?`)
MatchOneToTwo is used to match one to two digits.
var MatchShortOffset = regexp.MustCompile(`(?i)(Z|[+-]\d\d(?::?\d\d)?)`)
MatchShortOffset is used to match short timezone offsets.
var MatchSigned = regexp.MustCompile(`[+-]?\d+`)
MatchSigned is used to match signed digits.
var MatchThree = regexp.MustCompile(`\d{3}`)
MatchThree is used to match exactly 3 digits.
var MatchTimestamp = regexp.MustCompile(`[+-]?\d+(\.\d{1,3})?`)
MatchTimestamp is used to match unix timestamps.
var MatchTwo = regexp.MustCompile(`\d\d`)
MatchTwo is used to match exactly 2 digits.
var MatchUnsigned = regexp.MustCompile(`\d+`)
MatchUnsigned is used to match unsigned digits.
var TimeZoneRegex = regexp.MustCompile(`Z|[+-]\d\d(?::?\d\d)?`)
TimeZoneRegex is used to parse timezones.
var TokenRegex = regexp.MustCompile(`(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|SS?S?|X|zz?zz?|ZZ?|.)`)
TokenRegex is used to parse tokens out of formats.
Functions ¶
This section is empty.
Types ¶
This section is empty.