Skip to content

Commit abaa97c

Browse files
author
adrianbartyczak
committed
Update documentation for generateRandomDate bash utility function
1 parent 9d43135 commit abaa97c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

functions_scripts/programming_languages/bash/dateandtimeutils.bash

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,20 @@
2929
# "2004-04-25T16:18:13.489392193").
3030
# Usage:
3131
# 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)]]]"
3634
# Examples:
3735
# generateRandomDate '05,09,04,11,15,31'
3836
# # "2007-04-25T16:18:13.489392193"
3937
# generateRandomDate '42,56,09,10,03,08,19,22'
4038
# # "2045-10-07T22:33:42.730192851"
41-
#
4239
# Options:
4340
# -t get date as timestamp in the fomat [[CC]YY]MMDDhhmm[.ss]
44-
#
4541
# 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).
5046
generateRandomDate() {
5147
local DFLT_CENTURY_PREFIX='21'
5248
local OPT OPTIND

0 commit comments

Comments
 (0)