« first day (4620 days earlier)      last day (389 days later) » 

2:05 AM
@Ramhound Search for?
@Ramhound I'd almost say, off the top of my head that whatever you're doing involves the 'date' command
 
 
3 hours later…
5:14 AM
@JourneymanGeek - If I said J2000 integer value would that make sense? So my bash script calculates the current Unix time, converts that to j2000 for the start time, and subtracts 24 hours for the stop time to submit a postresql query.
What I actually want is to calculate the Unix time between (yesterday) between 00:01 and 23:59.
 
5:37 AM
hm
geek@torrentbox31:~$ date --date='yesterday'
Thu 30 Mar 2023 01:36:00 PM +08
geek@torrentbox31:~$ date +%s --date='yesterday'
1680154591
geek@torrentbox31:~$ date +%s
1680240995
geek@torrentbox31:~$
Calculate?
So assuming your clock is on the timezone you want
date +%s --date='00:01 yesterday'
and
date +%s --date='23:59 yesterday'
@Ramhound what's J2000?
The one I have is unix epoch, from 1970
linux.die.net/man/1/date I don't see a J2000 option
 
It's used in relation to orbits of satellites
However, what you have provide, might do the trick
I just need the unix time, if i have that, then I can calculate the j2000 time
after days of searching, I was able to find this gem: stackoverflow.com/questions/61857368/…, only after i learned you can specify a date and time and get a UNIX time (which I didn't know)
 
6:05 AM
lol
TFM IS AMAZING
I used yesterday cause I'm lazy and always works
 
To be fair I didn't know where the manual was :-)
 
6:21 AM
Well yes.
The actual man command output is terrible
But I remember from when I was writing a script to run to send me a message when certain tasks ran
 
 
16 hours later…
10:44 PM
 

« first day (4620 days earlier)      last day (389 days later) »