how can i convert unix time o time in php?
Moderator: General Moderators
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
how can i convert unix time o time in php?
what is the fast way?
what is the difference between a unix timestamp and php date anyway?
i was not aware that php has a date type? (http://www.php.net/manual/en/language.types.php)
i was not aware that php has a date type? (http://www.php.net/manual/en/language.types.php)
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
he diffrence is that for example
if i have a time in unixtime likethis :
the link to the types dosent help
and i want to convert it using php to a date/timevalue i dont havea ready made function!1104616800
the link to the types dosent help
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I don't understand what you mean. So you have a unix timestamp... which PHP handles nicely with it's date() function. And you want to get what?
Am I being dumb or is that what you mean?
EDIT | Oops... I see my point was already made by feyd. Took me 10 mins to write that answer cos I keep getting jobs to do
Code: Select all
date("d/m/Y G:i:s", $timestamp);EDIT | Oops... I see my point was already made by feyd. Took me 10 mins to write that answer cos I keep getting jobs to do
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
mmmmmmmmmm i see know
thnaks you both