JDAY(1)
π JDAY π
okay bestie, pull up a chair, because we're talking about jday β that's the manual page from the JDAY(1) family, sitting pretty at version 2.4 β¨. Two little command line cuties, jday and j2d, who do the exact same job in opposite directions. Slay.
β¨ NAME β¨
jday, j2d β astronomical julian date conversion utilities πͺ
πΈ SYNOPSIS πΈ
jday
jday [-d [-]year-mm-dd hh:mm:ss]
jday [--version]
jday [--h[elp]]
j2d <julian decimal date>
j2d [--version]
j2d [--h[elp]]
π¦ DESCRIPTION π¦
so jday and j2d are command line utilities that convert calendar dates into astronomical julian dates, and julian dates back into calendar dates. it's giving time-travel but make it math π
and bestie, there's a whole corresponding library called libjday.a that does the same functionality inside applications. so if you're out here writing your own program and you want this energy built in, it's literally right there. no cap.
π OPTIONS π
π jday accepts the following options:
- none at all β
jdaywill simply print out the julian date based on the date and time found on the system. zero effort, maximum vibes π«Ά [year [month [day [hour [minute [second]]]]]]β always in that order, to override that value found on the system. so yes, you're literally overriding the clock, main character energy π₯-d [-]year-mm-dd hh:mm:ssβ specify a year in the same format as that printed out byj2d
π j2d accepts the following options:
<julian decimal date>β this is the only, and required argument toj2d. required bestie, it's not optional, she needs it π
π both commands accept the following options:
--versionβ display the version of the programs.--h[elp]β display a command help message
π EXAMPLES π
okay watch, this is the part where it gets iconic:
$ jday 1970 1 1 12 0 0
2440588.000000
$ jday 0 1 1 12 0 0
1721058.000000
$ jday -4712 1 1 12 0 0
0.000000
$ jday -d -4712-01-01 12:00:00
0.000000
$ j2d 0.0
-4712-01-01 12:00:00
$ j2d 1721058.0
0-01-01 12:00:00
$ j2d 2440588.0
1970-01-01 12:00:00
see how it just flips back and forth?? ate. periodt. π§
β SEE ALSO β
- Time Standard:
http://tycho.usno.navy.mil - Systems of time:
http://tycho.usno.navy.mil/systime.html
iykyk, go read those if you want the deep lore π
π COPYRIGHT π
okay so this next part is the legal bit and bestie, we do not paraphrase legal bits. here it is, exactly as it was written π«‘
Copyright Β© 1986-2005, Hiram Clawson
jday at hiram.ws
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither name of The Museum of Hiram nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
and that's the whole page bestie π₯Ή this version dropped on 10 October 2005, tagged as Version in the footer of JDAY(1). historic. iconic. go convert some dates πβ¨π
π¦ where this page comes from
- fedora 43: jday 2.4-50.fc43 Β· BSD-3-Clause
- fedora 43: jday 2.4-50.fc43 Β· BSD-3-Clause
- fedora 44: jday 2.4-51.fc44 Β· BSD-3-Clause
- fedora 44: jday 2.4-51.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms