Skip to contents

Get regular expressions for time units in Julia

Usage

get_regex_time_units()

Value

Named vector with regular expressions as names and units as entries

See also

Examples

get_regex_time_units()
#>          ^[S|s]econd[s]?$          ^[M|m]inute[s]?$            ^[H|h]our[s]?$ 
#>                       "s"                  "minute"                      "hr" 
#>             ^[D|d]ay[s]?$            ^[W|w]eek[s]?$            ^[Y|y]ear[s]?$ 
#>                       "d"                      "wk"                      "yr" 
#>     ^[C|c]ommon year[s]?$  ^[C|c]ommon quarter[s]?$    ^[C|c]ommon month[s]?$ 
#>               "common_yr"          "common_quarter"            "common_month" 
#>         ^[Q|q]uarter[s]?$           ^[M|m]onth[s]?$ ^[Y|y]otta[S|s]econd[s]?$ 
#>                 "quarter"                   "month"                      "Ys" 
#> ^[Z|z]etta[S|s]econd[s]?$   ^[E|e]xa[S|s]econd[s]?$  ^[P|p]eta[S|s]econd[s]?$ 
#>                      "Zs"                      "Es"                      "Ps" 
#>  ^[T|t]era[S|s]econd[s]?$  ^[G|g]iga[S|s]econd[s]?$  ^[M|m]ega[S|s]econd[s]?$ 
#>                      "Ts"                      "Gs"                      "Ms" 
#>  ^[K|k]ilo[S|s]econd[s]?$ ^[H|h]ecto[S|s]econd[s]?$  ^[D|d]eka[S|s]econd[s]?$ 
#>                      "ks"                      "hs"                     "das" 
#>  ^[D|d]eci[S|s]econd[s]?$ ^[C|c]enti[S|s]econd[s]?$ ^[M|m]illi[S|s]econd[s]?$ 
#>                      "ds"                      "cs"                      "ms" 
#> ^[M|m]icro[S|s]econd[s]?$  ^[N|n]ano[S|s]econd[s]?$  ^[P|p]ico[S|s]econd[s]?$ 
#>                "\\u03BCs"                      "ns"                      "ps" 
#> ^[F|f]emto[S|s]econd[s]?$  ^[A|a]tto[S|s]econd[s]?$ ^[Z|z]epto[S|s]econd[s]?$ 
#>                      "fs"                      "as"                      "zs" 
#> ^[Y|y]octo[S|s]econd[s]?$   ^[Y|y]otta[Y|y]ear[s]?$   ^[Z|z]etta[Y|y]ear[s]?$ 
#>                      "ys"                     "Yyr"                     "Zyr" 
#>     ^[E|e]xa[Y|y]ear[s]?$    ^[P|p]eta[Y|y]ear[s]?$    ^[T|t]era[Y|y]ear[s]?$ 
#>                     "Eyr"                     "Pyr"                     "Tyr" 
#>    ^[G|g]iga[Y|y]ear[s]?$    ^[M|m]ega[Y|y]ear[s]?$    ^[K|k]ilo[Y|y]ear[s]?$ 
#>                     "Gyr"                     "Myr"                     "kyr" 
#>   ^[H|h]ecto[Y|y]ear[s]?$    ^[D|d]eka[Y|y]ear[s]?$    ^[D|d]eci[Y|y]ear[s]?$ 
#>                     "hyr"                    "dayr"                     "dyr" 
#>   ^[C|c]enti[Y|y]ear[s]?$   ^[M|m]illi[Y|y]ear[s]?$   ^[M|m]icro[Y|y]ear[s]?$ 
#>                     "cyr"                     "myr"               "\\u03BCyr" 
#>    ^[N|n]ano[Y|y]ear[s]?$    ^[P|p]ico[Y|y]ear[s]?$   ^[F|f]emto[Y|y]ear[s]?$ 
#>                     "nyr"                     "pyr"                     "fyr" 
#>    ^[A|a]tto[Y|y]ear[s]?$   ^[Z|z]epto[Y|y]ear[s]?$   ^[Y|y]octo[Y|y]ear[s]?$ 
#>                     "ayr"                     "zyr"                     "yyr" 
#>                 ^[S|s]ec$                 ^[M|m]in$    ^[C|c]ommon month[s]?$ 
#>                       "s"                  "minute"            "common_month" 
#>  ^[C|c]ommon quarter[s]?$     ^[C|c]ommon year[s]?$ 
#>          "common_quarter"               "common_yr"