|
29 | 29 | # "2004-04-25T16:18:13.489392193"). |
30 | 30 | # Usage: |
31 | 31 | # generateRandomDate <min and max date entities> |
32 | | - # |
33 | | - # min and max date entities: format in "YY(min),YY(max),[MM(min),MM(max), |
34 | | - # [DD(min),DD(max),[hh(min),hh(max)]]]" |
35 | | - # |
| 32 | + # min and max date entities: format in "YY(min),YY(max),[MM(min), |
| 33 | + # MM(max),[DD(min),DD(max),[hh(min),hh(max)]]]" |
36 | 34 | # Examples: |
37 | 35 | # generateRandomDate '05,09,04,11,15,31' |
38 | 36 | # # "2007-04-25T16:18:13.489392193" |
39 | 37 | # generateRandomDate '42,56,09,10,03,08,19,22' |
40 | 38 | # # "2045-10-07T22:33:42.730192851" |
41 | | - # |
42 | 39 | # Options: |
43 | 40 | # -t get date as timestamp in the fomat [[CC]YY]MMDDhhmm[.ss] |
44 | | - # |
45 | 41 | # Notes: |
46 | | - # All generated years are within the century defined by DFLT_CENTURY_PREFIX. |
47 | | - # |
48 | | - # Each date entity is inclusive of the previous entity (e.g. if the max hour |
49 | | - # is 15, the max time with minutes can be 15:59). |
| 42 | + # -All generated years are within the century defined by |
| 43 | + # DFLT_CENTURY_PREFIX. |
| 44 | + # -Each date entity is inclusive of the previous entity (e.g. if the max |
| 45 | + # hour is 15, the max time with minutes can be 15:59). |
50 | 46 | generateRandomDate() { |
51 | 47 | local DFLT_CENTURY_PREFIX='21' |
52 | 48 | local OPT OPTIND |
|
0 commit comments