13 lines
186 B
Bash
13 lines
186 B
Bash
#!/bin/bash
|
|
|
|
current_ue() {
|
|
date +%s
|
|
}
|
|
|
|
dt_to_ue() {
|
|
date --date="${1:?Datetime not set}" +%s
|
|
}
|
|
|
|
dt_to_pretty() {
|
|
date --date="${1:?Datetime not set}" +"%Y-%m-%d %H:%M:%S"
|
|
}
|