Jump to content

"Julian" date display/conversion


Recommended Posts

I've published the following to GitHub (https://github.com/Tam-Lin/julian_date) I'll be putting a version up on Packal shortly.

 

Dates in the mainframe world are denoted by the number of days from January 1st of a given year, often referred to as the Julian Date. (I have Julian in quotation marks in the title because strictly speaking, the Julian Date is the number of days since January 1, 4713 BC; the date used in the mainframe world is the ordinal date.) 

Functionality

  • Display today's Julian Date screenshot-1.png

  • Calculate an offset of today's Julian Date screenshot-2.png

  • Calculate a YYYY-MM-DD date given a Julian Date screenshot-3.png

  • Calculate a Julian Date given a date in a variety of different formats screenshot-4.png

After the result has been calculated, you can send a result to the clipboard by selecting the value you want to copy.

Notes

There are a lot of things that could be improved, such as dealing better with invalid entries, but it works well enough for me right now.

Credits

The workflow is primarily written in python, using the following additional libraries:

 

Edited by Tam-Lin
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...