jdopt_set_default_separator {RJalaliDate} | R Documentation |
Specify the default separator
Description
specifying one of valid separators as default separator
Usage
jdopt_set_default_separator(separator)
Arguments
separator |
character |
Details
The default separator (where initially is "/") has several uses. For example, to print JalaliDate: JalaliDate(list(1375, 1, 2)) that display "1375/01/02". Selected separator must belong to 'VALID_SEPARATORS' set, otherwise an error would be raised.
Value
options list that includes DEFAULT_SEPARATOR, VALID_SEPARATORS, MIN_YEAR, MAX_YEAR
Examples
JalaliDate(Sys.Date())
# [1] "1403/04/29"
jdopt_set_default_separator("-")
JalaliDate(Sys.Date())
# [1] "1403-04-29"
[Package RJalaliDate version 0.1.0 Index]