Julian Dates
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Julian Dates

Started by merlin_xl54, 04 August, 2008, 21:18:28

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

merlin_xl54

Hi,

I've noticed that some script refer to a Julian date. Is there an easy way to understand this in regards to Ptokax & Lua? I use a script "Top Hubbers" which sets a date on first connect to a table. Example below. Is there a way to determine this as a Day Month Year format?

["Julian"] = 1216309474,

Tia,

M
Living is easy with eyes closed.

bastya_elvtars

Yes. This is the number of seconds passed since 1st January 1970 00:00:00 (which is the smallest possible date for Lua amongst others). You should be able to count this.
(Moved to the appropriate forum.)
Everything could have been anything else and it would have just as much meaning.

Yada

well Thats is not really Julian Date that, it's Unix Time.

It's more like this:

Julian Date (JD) had it's Epoch BC 4713-01-01 12:00, Monday
The JC date for 2008 August 5 00:00:00 UT is 2454683.24125 days
And the Chronological Julian Day (CJD) is JD + 0.5 = 2454684 (with 0.5 representing midnight Universal Time)

And Unix time in seconds from it's Epoch 1970-01-01, Thursday
The Unix time for UTC (Coordinated Universal Time) 2008 August  5 00:00:00 is 1217894400 seconds

There is a ton of converters online and some nice scripts here in this forum that converts to Day Month Year format

Jorgo

#3
Actually, that was when Julian dated Jenny, somewhere in the summer of '69. It's somewhat of a rough timeframe but for a nerd it was like the eigth wonder of the world. Henceforth he wrote Julian Dates Jenny in Capitals, but when Jenny left him, just Julian Dates remained to mark the monumental affair.

merlin_xl54

Quote from: Yada on 05 August, 2008, 14:33:17

There is a ton of converters online and some nice scripts here in this forum that converts to Day Month Year format

Thanks.... That was what I needed. I found one online.

M
Living is easy with eyes closed.

Thor

os.date() can format you: http://www.lua.org/manual/5.1/manual.html#pdf-os.date
eg. use os.date("%Y %B %d %H:%M:%S",1217894400) will result 2008 August 05 00:00:00. You can use the same variables as in C.

SMF spam blocked by CleanTalk