Methods
(static) generate_date_seq(dateopt) → {string}
Generates a date sequence string from a given date or current date
The sequence format is: d[0]m[0]y[0]w[0]d[1]m[1]y[1] where:
d = day padded to 2 digits
m = month padded to 2 digits
y = last 2 digits of year
w = weekday number (0-6)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
date |
Date |
<optional> |
null | Date object to generate sequence from. If null, uses current date |
Returns:
The generated date sequence string
- Type
- string
(static) get_random_char_seq(n) → {string}
Generates a random string of specified length using alphanumeric characters
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Length of random string to generate |
Returns:
Random string of length n containing alphanumeric characters
- Type
- string