|
| |||||||||
| Tags: function, php, software development, strftime, syntax |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| strftime() in PHP
Hi, I am new in PHP language. And want to know exact syntax of this function. So can anyone help me. Please tell me the syntax. I am waiting for your reply. |
|
#2
| ||||
| ||||
| Re: strftime() in PHP
Hi, strftime() function is used to format a local time/date according to locale settings. Syntax: Code: string strftime ( string $format [, int $timestamp = time() ] ) Last edited by Modifier : 21-11-2009 at 12:41 PM. |
|
#3
| ||||
| ||||
| Re: strftime() in PHP
Hi, PHP uses strftime() function to formats a local time or date according to locale settings. It has following syntax: Code: strftime(format,timestamp) No code has to be inserted here. Last edited by Zecho : 21-11-2009 at 12:43 PM. |
|
#4
| ||||
| ||||
| Re: strftime() in PHP
Hi, strftime() function in PHP has following syntax. Syntax: Code: string strftime ( string $format [, int $timestamp = time() ] ) Code: <?php
echo(strftime("%b %d %Y %X", mktime(20,0,0,11,2,99)).);
?> Nov 2 1999 20:00:00 Nov 2 1999 19:00:00
__________________ Grand Theft Auto 4 PC Video Game |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "strftime() in PHP" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to use the strftime() in C++ | Gavyn | Software Development | 5 | 02-03-2010 04:56 PM |