[Request]Timestamp converter for siege dates

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
qbert
Posts: 26
Joined: Sun Aug 09, 2009 6:06 am

[Request]Timestamp converter for siege dates

Post by qbert »

Table Castle > SiegeDate you can find a date like this: 1257102600000

I try a lot of TimeStamp converters, but they all give me wrong dates (October 28 2009 16:10 PM (GMT -4) its the rigth date)

So i was wondering if there is a tool who made this because i need sieges every week (custom gracia final server)

Any help would be greatly apreciated... and sorry if im posting in the wrong forum mr moderator :P
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: [Request]Timestamp converter for siege dates

Post by janiii »

you have to chop 3 last places and then convert with a unix time converter. or try to search on forum, there is a nice web tool for calculating the CS time.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
daedalus
Posts: 155
Joined: Sun Mar 12, 2006 12:16 pm

Re: [Request]Timestamp converter for siege dates

Post by daedalus »

Timestamp need to be divide by 1000 before to convert

Code: Select all

<?php echo date('M d Y h:iA ',$siegeDate/1000); ?>
So for you you need to multiply by 1000 before to update siege date.
Last edited by daedalus on Fri Oct 23, 2009 8:18 am, edited 1 time in total.
Daedalus
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: [Request]Timestamp converter for siege dates

Post by janiii »

DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
daedalus
Posts: 155
Joined: Sun Mar 12, 2006 12:16 pm

Re: [Request]Timestamp converter for siege dates

Post by daedalus »

ha yeah haven't read correctly

Thx janiii
Daedalus
labman
Posts: 67
Joined: Sun Sep 13, 2009 2:09 pm
Location: Taiwan
Contact:

Re: [Request]Timestamp converter for siege dates

Post by labman »

Thanks janiii
It's powerful!
fendor3
Posts: 18
Joined: Sat Feb 26, 2011 8:51 am

Re: [Request]Timestamp converter for siege dates

Post by fendor3 »

that dosen't work for me it keeps show me the same date it was before i made restart and put this code :S
Post Reply