mynote/linux/date.sh
2024-05-23 16:11:06 +08:00

14 lines
262 B
Bash

#! /bin/sh
#
# date.sh
# Copyright (C) 2023 veypi <i@veypi.com>
#
# Distributed under terms of the MIT license.
#
sudo date -s "$(bash ~/.date.sh 01)"
a=$RANDOM
a1=$1
echo $(printf "202310${a1}T%02d:%02d:%02d" $(($RANDOM%24)) $(($RANDOM%24)) $(($RANDOM%24)) )