Option of date command in Linux is easy --iso-8601='seconds' than "+%Y-%m-%dT%H:%M:%S%:z"

about date command format

 

GNU date コマンドで unix time 変換 - Qiita

date コマンド | コマンドの使い方(Linux) | hydroculのメモ

 

  • 時間比較

Bashでの時間比較(指定した時刻を過ぎているかどうか判定する) - Qiita

Bashでif~then~else~fi文使う場合に忘れちゃならないこと - Qiita

シェルスクリプトで日付と時間を大小判定 - Qiita

if 文と test コマンド | UNIX & Linux コマンド・シェルスクリプト リファレンス

逆引きシェルスクリプト/ファイルの日時を比較する方法 - Linuxと過ごす

 

GitHub - takurx/shell_script_compare_file_time: shell script compare file time