Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
vrijeme

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
snyder



Joined: 21 Dec 2005
Posts: 57
Location: Zagreb

PostPosted: 03.07.2006 11:00    Post subject: vrijeme Add user to your forum ignore list Reply with quote

dakle imam vrijeme u ovom formatu:
1151916920

kako i jel se uopće može prebaciti u ovaj:
10:55:20 03.07.2006

??
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
unique



Joined: 29 Mar 2004
Posts: 655

PostPosted: 03.07.2006 11:08    Post subject: Re: vrijeme Add user to your forum ignore list Reply with quote

snyder wrote:
dakle imam vrijeme u ovom formatu:
1151916920

kako i jel se uopće može prebaciti u ovaj:
10:55:20 03.07.2006

??


pretpostavljam da je to unix timestamp (koji btw. vraca funkcija time() ) i da se radio o phpu, onda samo s date() funkcijom to pretvoris u koji format oces -> http://www.zend.com/manual/function.date.php

time() wrote:
Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

dakle 1151916920, bi se citalo 1151916920 sekundi nakon unixa :)

_________________
Activate interlock! Dynotherms connected! Infracells up! Mega thrusters are go! LET'S GO VOLTRON FORCE!
Back to top
View user's profile Send private message
snyder



Joined: 21 Dec 2005
Posts: 57
Location: Zagreb

PostPosted: 03.07.2006 11:15    Post subject: Add user to your forum ignore list Reply with quote

e to, zafaljujem
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
unique



Joined: 29 Mar 2004
Posts: 655

PostPosted: 03.07.2006 11:43    Post subject: Add user to your forum ignore list Reply with quote

btw. sjecamo li se famoznog y2k buga :) be aware! here comes y2038 bug :))
dakle ako mislis da ce ti projekt bit aktivan i tamo oko 2038. godine bolje koristi unsinged 32bitni integer tip podataka :D ili jos bolje y2106 bug :D za tu ce ti trebat 64bitni tip :)

(2038-1970)*365*24*60*60=2 144 448 000
2^32=4 294 967 296 (unsigned)
2^31-1=2 147 483 647 (signed)

(2106-1970)*365*24*60*60=4 288 896 000
2^64=18 446 744 073 709 551 616 (gaziliun? :))

i ps. http://en.wikipedia.org/wiki/Unix_billennium

_________________
Activate interlock! Dynotherms connected! Infracells up! Mega thrusters are go! LET'S GO VOLTRON FORCE!
Back to top
View user's profile Send private message
snyder



Joined: 21 Dec 2005
Posts: 57
Location: Zagreb

PostPosted: 03.07.2006 11:57    Post subject: Add user to your forum ignore list Reply with quote

lol, teško Smile a i do tad će biti php67 pa će u njemu biti nešto za to Very Happy
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group