ae.utils.time.parse

Time parsing functions.

Members

Aliases

parseAbsTime
alias parseAbsTime = parseTimeLike!AbsTime

Parse the given string into an AbsTime, using the format spec fmt. This version generates specialized code for the given fmt. Fields which are not representable in an AbsTime, such as timezone, are parsed but silently discarded.

parseAbsTimeUsing
alias parseAbsTimeUsing = parseTimeLikeUsing!AbsTime

Parse the given string into an AbsTime, using the format spec fmt. This version parses fmt at runtime. Fields which are not representable in an AbsTime, such as timezone, are parsed but silently discarded.

parseDate
alias parseDate = parseTimeLike!Date

Parse the given string into a Date, using the format spec fmt. This version generates specialized code for the given fmt. Fields which are not representable in a Date, such as timezone or time of day, are parsed but silently discarded.

parseDateTime
alias parseDateTime = parseTimeLike!DateTime

Parse the given string into a DateTime, using the format spec fmt. This version generates specialized code for the given fmt. Fields which are not representable in a DateTime, such as timezone or milliseconds, are parsed but silently discarded.

parseDateTimeUsing
alias parseDateTimeUsing = parseTimeLikeUsing!DateTime

Parse the given string into a DateTime, using the format spec fmt. This version parses fmt at runtime. Fields which are not representable in a DateTime, such as timezone or milliseconds, are parsed but silently discarded.

parseDateUsing
alias parseDateUsing = parseTimeLikeUsing!Date

Parse the given string into a Date, using the format spec fmt. This version parses fmt at runtime. Fields which are not representable in a Date, such as timezone or time of day, are parsed but silently discarded.

parseTime
alias parseTime = parseTimeLike!SysTime

Parse the given string into a SysTime, using the format spec fmt. This version generates specialized code for the given fmt.

parseTimeOfDay
alias parseTimeOfDay = parseTimeLike!TimeOfDay

Parse the given string into a TimeOfDay, using the format spec fmt. This version generates specialized code for the given fmt. Fields which are not representable in a TimeOfDay, such as year/month/day or timezone, are parsed but silently discarded.

parseTimeOfDayUsing
alias parseTimeOfDayUsing = parseTimeLikeUsing!TimeOfDay

Parse the given string into a TimeOfDay, using the format spec fmt. This version parses fmt at runtime. Fields which are not representable in a TimeOfDay, such as year/month/day or timezone, are parsed but silently discarded.

parseTimeUsing
alias parseTimeUsing = parseTimeLikeUsing!SysTime

Parse the given string into a SysTime, using the format spec fmt. This version parses fmt at runtime.

Functions

parseLogTimestamp
SysTime parseLogTimestamp(string s)

Parse log timestamps generated by ae.sys.log, including all previous versions of it.

Templates

parseTimeLike
template parseTimeLike(T)
Undocumented in source.
parseTimeLikeUsing
template parseTimeLikeUsing(T)
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>