Commit 99e74b04 authored by Cherry NG's avatar Cherry NG
Browse files

rounding to emoji clock

parent 1b7a3ea9
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
function emoji-clock() { function emoji-clock() {
hour=$(date '+%I') hour=$(date -v '+15M' '+%I')
minutes=$(date '+%M') minutes=$(date -v '+15M' '+%M')
case $hour in case $hour in
01) clock="🕐"; [ $minutes -ge 30 ] && clock="🕜";; 01) clock="🕐"; [ $minutes -ge 30 ] && clock="🕜";;
02) clock="🕑"; [ $minutes -ge 30 ] && clock="🕝";; 02) clock="🕑"; [ $minutes -ge 30 ] && clock="🕝";;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment