Description Usage Arguments Details Value Author(s) References See Also Examples
Checks if a string fulfills the joda-times class specifications supported by DSPL language.
1 | checkTimeFormat(fmt)
|
fmt |
String representing a time format to be verified. |
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 |
Logical. TRUE
if the string passes the test.
George G. Vega Yon
Google Public Data Explorer DSPL time definition: https://developers.google.com/public-data/docs/canonical/time?hl=es
Google Public Data Explorer Cookbook for time definitions: https://developers.google.com/public-data/docs/cookbook#time_recipes
Joda Time 2.1 API: http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html
See also dspl
1 2 3 | checkTimeFormat("yyyy-MM") # TRUE
checkTimeFormat("MMMyyyy") # TRUE
checkTimeFormat("mmmyyyy") # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.