2 ms·
Hmm, if I copy/paste this, I get a different output: ~ ~/certdays.sh google.com 14 date: illegal time format usage: date [-jnRu] [-d dst] [-r seco
by kingsloi 6y ago
Hmm, if I copy/paste this, I get a different output:
~ ~/certdays.sh google.com 14
date: illegal time format
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-
v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]]
[+format]
google.com: -18568
-n Lasts longer then 14 days?
NO!!!!!!!!!!!!!!
- mg 6y agoWorks for me. In Bash? Maybe copy/paste gone wrong? I have put it into a Github repo now and put the link into the post. Does that work for you?
- stereo 6y agoAre you running it on macOS or something non-Linux?
- kingsloi 6y agoAh, yes I am running it on macOS Mojave
- floatingatoll 6y agoYou can brew install coreutils and edit it to use gdate instead of date.