- Aug
- 2,033
- 82
Here is an alias to determine how many days there are until a certain date;
Thus;
will return
One could also do this using TCC internal functions and variables
This returns 35.
Interesting how there is one day difference. Must be a time zone adjustment.
These are unpolished, and just demonstrations.
Joe
Code:
alias daysuntil=`type https://days.to/%1-%2/%3 | tpipe /simple=16 | ffind /k/m/t"There are"`
Thus;
Code:
daysuntil 20 December 2016
will return
Code:
There are 34 days until 20th December 2016
One could also do this using TCC internal functions and variables
Code:
echo %@eval[%@doy[%_year-12-20] - %_doy]
This returns 35.
Interesting how there is one day difference. Must be a time zone adjustment.
These are unpolished, and just demonstrations.
Joe