From c4797126785634dcd95df01b348a9288bc59deb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=BD=8F=E6=9F=B1=E9=96=93?= Date: Sat, 2 Mar 2024 23:05:55 +0000 Subject: [PATCH] add feature: show time in japanese --- misc/scripts/date.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/scripts/date.sh b/misc/scripts/date.sh index 6b4b406..a803a88 100755 --- a/misc/scripts/date.sh +++ b/misc/scripts/date.sh @@ -1,5 +1,5 @@ -# Get the current date in Japanese-style format without the day -japanese_date=$(date '+%Y年%m月%d日') +# Get the current date and time in Japanese-style format +japanese_datetime=$(date '+%Y年%m月%d日 %H時%M分%S秒') # Get the current day of the week in English english_day=$(date '+%A') @@ -17,7 +17,7 @@ case $english_day in esac # Combine the Japanese-style date with the Japanese day name, adding spaces -japanese_date_with_day=" $japanese_date $japanese_day" +japanese_date_with_day=" $japanese_datetime $japanese_day" -# Output the formatted date and day in Japanese +# Output the formatted date, time, and day in Japanese echo "📅 $japanese_date_with_day "