Skip to content

Commit

Permalink
better date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
simylein committed Jan 8, 2021
1 parent e7f6b15 commit 55701a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server.settings
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ purple="\033[0;35m"
nocolor="\033[0m"

# backup stuff
newhourly=$(date +"%H"-00)
oldhourly=$(date -d "-23 hours" +"%H-00")
newhourly=$(date +"%H:00")
oldhourly=$(date -d "-23 hours" +"%H:00")
newdaily=$(date +"%Y-%m-%d")
olddaily=$(date -d "-32 days" +"%Y-%m-%d")
newweekly=$(date +"%U")
oldweekly=$(date -d "-12 weeks" +"%U")
newmonthly=$(date +"%m")
odlmonthly=$(date -d "-6 months" +"%m")
newweekly=$(date +"week-%U")
oldweekly=$(date -d "-12 weeks" +"week-%U")
newmonthly=$(date +"%B")
odlmonthly=$(date -d "-6 months" +"%B")

# logfiles
screenlog="screen.log"
Expand Down

0 comments on commit 55701a0

Please sign in to comment.