Results 1 to 8 of 8
Thread: Julian date coding on an A81
02-14-2017, 12:32 PM #1
Julian date coding on an A81
We are looking to serialize our parts with a Julian date and then a sequential number to mark what number it is off the machine. For example the first piece off the machine today would be 04501.
Does anyone know or currently do anything like this? I don't know how to access the date on the machine. The rest should be easy.
02-14-2017, 02:59 PM #2
As far as I remember, the last country to use Julian dates was Greece, and they changed to the Gregorian system in the 1920s. England, and of course her American colonies, changed in 1752.
02-14-2017, 03:18 PM #3
Most computer OS have utility support for it. Another, on Unix, is to include a timestamp called 'epoch'.
Julian date is on many of the 'dead tree' calendars sold in office supply stores if you need an easily located human-readable source to check the machine or 'code' against.
Research out in IS/IT & Database land. You'll find plenty of tools, a short-ton of options built right into any 'heavy lifter' (O)RDBMS... PostgreSQL for one.
02-14-2017, 03:27 PM #4
02-15-2017, 01:53 AM #5
Or even more specifically the "sticky" thread devoted to Macro programming.
Macro Programming Fundamentals
The guys you need, to tell you how to extract System Variables from that control. Then crunch a macro to convert it to Julian, hang out there. Sequential numbering is a piece of cake for them.
Rather sadly, all your getting here is the history of Julian.*
* Did either of you numb nuts, notice, this is a first time poster? He has a Makino A81. Thats a serious machine, from this century no less. He needs a solution, not cock stroking, and yet more verbal diarrhea.
Motorsports-X liked this post
02-15-2017, 04:16 AM #6
02-15-2017, 07:10 AM #7
The 'conventionally utilized' Julian date is but the sequential day of a given year.
Pedantically, it is the wrong term, but it is what is widely used - unless, perhaps, one is an Astronomer.
There are sources all over town from the paper calendars and day-timers to a small number on the corner of the display of some of those 'atomic' clocks one can place on a desk or hang on the wall.
The 'real' Julian date is a continuously incrementing and far larger number.
US Navy Observatory provides it online, along with calculators for ascertaining what it was or will be, given a year, month, day, hour minute, and second of prior or future common calendar years - or the reverse:
Julian Date Converter
An instructional overview with a precis of the history is also provided on that page as text. Links to API's too.
If one can trust a given machine's local 'system clock', especially if the system clock is being kept updated over a link to a 'good enough' tier of time-servers, either/both Julian date or day-of-year may be extracted with a built-in function.
The OP is by no means the first Pilgrim to ever need such a service.
If he is already programming the rest of his project, he can do this part without injection of kinky-f**kery abuse from 'downunder' as well.
Side note: I have NO idea if mad-Phil is actually stroking himself as he posts or not. Fortunately, Australia is sufficiently remote from PM's server that detail does not HAVE TO pass the proverbial 'sniff test'.
digger doug liked this post
02-21-2017, 09:12 AM #8
Thanks for the help and history of Julian dates. I will check out the Macro sticky.