Jump to content

mktime to year min and more?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
How can I change mktime to minutes and second?
or how to change time() to mins and ...??

#2
DEViANT

DEViANT

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 358 posts
PHP: date - Manual

Example :
$time = mktime(2, 14, 45, 7, 12, 2010);
$date = date('H:i',$time);

Or :
$time = time();
$date = date('H:i:s',$time);

:D You should rep+ me so that I can win :D

My Blog | Ask me!
Error : Satan did it