checkTimeFormat: DSPL time format verification

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Checks if a string fulfills the joda-times class specifications supported by DSPL language.

Usage

1

Arguments

fmt

String representing a time format to be verified.

Details

Public Data Explorer currently supports daily, monthly and yearly distributed data. Joda-time, the corresponding time format on which DSPL times is based, allows declaring time formats using small case "d" (for days), capitalized "M" (for months) and small case "y" for years. Some examples:

Format Specification Data Example
"yyyy" 1988
"yyyy-MM" 1988-03
"yyyy-MMM" 1988-Mar
"dd-MM-yyyy" 02-03-1988

Value

Logical. TRUE if the string passes the test.

Author(s)

George G. Vega Yon

References

See Also

See also dspl

Examples

1
2
3
    checkTimeFormat("yyyy-MM") # TRUE
    checkTimeFormat("MMMyyyy") # TRUE
    checkTimeFormat("mmmyyyy") # FALSE

googlePublicData documentation built on May 2, 2019, 3:45 a.m.