Results 1 to 4 of 4

Thread: strftime() in PHP

  1. #1
    Join Date
    Nov 2009
    Posts
    580

    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. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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()  ] )
    Just change the syntax as you want. Just make use of your book to find out other details.
    Last edited by Modifier; 21-11-2009 at 12:41 PM.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    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)

    Last edited by Zecho; 21-11-2009 at 12:43 PM.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: strftime() in PHP

    Hi, strftime() function in PHP has following syntax.

    Syntax:
    Code:
    string strftime  ( string $format  [, int $timestamp = time()  ] )
    Example:
    Code:
    <?php
    echo(strftime("%b %d %Y %X", mktime(20,0,0,11,2,99)).);
    ?>
    The output of the code above could be:
    Nov 2 1999 20:00:00
    Nov 2 1999 19:00:00

Similar Threads

  1. How to use the strftime() in C++
    By Gavyn in forum Software Development
    Replies: 5
    Last Post: 02-03-2010, 04:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,109,845.31250 seconds with 16 queries