Converting seconds since the Unix epoch to RFC 2822 format

Discussion in 'PHP' started by norfstar, May 17, 2005.

  1. #1
    I would imagine this is pretty easy, but I must be overlooking something in the manual as I just can't seem to figure out how to do it. Can anyone give me a hint?
     
    norfstar, May 17, 2005 IP
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    noppid, May 17, 2005 IP
    norfstar likes this.
  3. norfstar

    norfstar Peon

    Messages:
    1,154
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks :D.

    For future reference the solution looks like:

    date('r', 1116329331);
    PHP:
    where 1116329331 is an example of seconds since the Unix epoch.
     
    norfstar, May 17, 2005 IP