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
PHP 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
mozvatic



Joined: 14 Dec 2006
Posts: 1

PostPosted: 14.12.2006 17:45    Post subject: PHP VRIJEME Add user to your forum ignore list Reply with quote

Imam nesto za izracunati, kao sto je prvi datum="22.2.2003" i prvi datum="22.2.2003". Izracunavanje bi trebalo biti da je od jednog do drugog datuma proslo X godina X mjeseci X dana.

Na netu nikako nemogu naci skriptu ili kako se to radi, pa bih bio zahvalan, ukoliko netko zna kako to izvesti.
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 14.12.2006 20:13    Post subject: Add user to your forum ignore list Reply with quote

pretvoriš oba datuma u timestampove a strtotime()

sad imaš dva integera - oduzmeš ih i dobiješ broj sekundi između ta dva datuma. dalje znaš
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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