- infos = Information about the date plugin is in keys below
- infos/author = Thomas Waser thomas.waser@libelektra.org
- infos/licence = BSD
- infos/needs =
- infos/provides =
- infos/recommends =
- infos/placements = presetstorage postgetstorage
- infos/status = recommended productive maintained reviewed conformant compatible coverage specific unittest tested libc final
- infos/metadata = check/date check/date/format
- infos/description = validates date and time strings
See installation.
The package is called libelektra5-extra.
The following representation standards of dates and times are currently supported and can be use by setting check/date to:
-
POSIXsee
STRPTIME(3)for more information. A valid format has to be specified incheck/date/format -
ISO8601see ISO8601. Possible format strings specified in
check/date/format, default:datetime complete+truncated:-
Dates/Time:
-
Date:
-
calendardatecalendar dates: day of month - month - year. -
weekdatecalendar week and day numbers, e.g. YYYY-Www-D -
ordinaldateyear + day of the year -
datecalendardate,weekdate, andordinaldatecombined
-
-
Time:
-
timeofday24-hour timekeeyping system -
utccoordinates universal time. either by appending a time-zone designator or the time difference toUTCtotimeofday
-
-
Combined:
datetimecombination of Dates and Time according to th ISO8601 specification.
-
-
Representation: if no representation is specified,
complete+reduced+truncatedis used as default.-
completecomplete representation, dates are separated by hyphens, times by colon, e.g. YYYY-MM-DD or hh:mm:ss -
reducedreduced precision, e.g. YYYY-MM, or hh -
truncatedtruncated representation, hyphens used to indicate omitted components, e.g. --MM-DD or --ss -
complete+reduced+truncatedallow all 3 representations -
complete+reducedallow onlycomplete+reducedrepresentation -
complete+truncatedallow onlycomplete+truncatedrepresentation -
reduced+truncatedallow onlyreduced+truncatedrepresentation.
-
-
Format: if no format is specified both
basicandextendedare treated as valid.-
basicno separating character between individual components of adate,timeordatetimeexpression. -
extendedseparating characters between components.datecomponents separated by hyphen,timecomponents by colon.
-
-
-
RFC2822a set of possible format strings derived from rfc2822 3.3, no format string needed.
POSIX.1-2001
TBD
Testing timezone designators currently only works with glibc. Unit tests using timezone designators are locale dependent.