- Usage:
l.date <format>
- Description: Get the current date using strftime.
- Since: 0.1.0
- Bash: 4.2+
- Test Cases: tests/modules/date.bats
- Source Code: src/modules/date.bash
- Usage:
l.now
- Description: Print the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).
- Since: 0.1.0
- Bash: 4.0+
- Notice: When run under Bash 4.0~4.4 and Alpine/Busybox systems, perl 5+ is required. Most Unix/Linux operating systems have included Perl 5. See the Perl Binaries.
- Test Cases: tests/modules/now.bats
- Source Code: src/modules/now.bash
- Usage:
l.now_s
- Description: Print the timestamp of the number of seconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).
- Dependent:
date
- Since: 0.1.0
- Bash: 4.2+
- Test Cases: tests/modules/now_s.bats
- Source Code: src/modules/now_s.bash