Skip to content

Instantly share code, notes, and snippets.

View cherryramatisdev's full-sized avatar
🏠
Working from home

Cherry Ramatis cherryramatisdev

🏠
Working from home
View GitHub Profile
#!/bin/bash
LOGFILE="$HOME/projects/dotfiles/work_track_time"
#disables the error if the directory exists, creates parent directories if needed
mkdir -p $(dirname $LOGFILE)
_format_task () {
# The assignment asks us to convert the time to HH:MM:SS, but also to make sure it runs correctly if the task exeeceds 24H.
# I choose to optionally render the time as D:HH:MM:SS if the time exceedes 24H.
local T=$1