first commit
This commit is contained in:
20
internal/space_creator/static/dd.datetime.sh
Normal file
20
internal/space_creator/static/dd.datetime.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# vi: set tabstop=4 shiftwidth=4 noexpandtab :
|
||||
#------------------------------------------------#
|
||||
# Модуль получения текущего даты-времени.
|
||||
#
|
||||
# . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
# - dd.datetime:
|
||||
# register: current_datetime
|
||||
#------------------------------------------------#
|
||||
source $1
|
||||
set -euo pipefail
|
||||
L_CHANGED=false
|
||||
|
||||
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
||||
|
||||
__curr_date=$(date +%Y%m%d_%H%M%S)
|
||||
|
||||
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
||||
|
||||
echo "{ \"changed\": ${L_CHANGED}, \"datetime\": \"$__curr_date\" }"
|
||||
Reference in New Issue
Block a user