strtotime Function

Discussion in 'PHP' started by ip076, Jan 8, 2006.

  1. #1
    Does the strtotime function work to convert an RFC822 Format Date to a Unix Timestamp?

    Doesn't seem to work for me...does anyone know the answer to this, or possibly have a function they use to do the same?

    Thanks a bunch!
     
    ip076, Jan 8, 2006 IP
  2. rossriley

    rossriley Guest

    Messages:
    25
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello.

    strtotime is for converting textual date/time formats. You might me better with th mktime() function, although you will need to separate your RFC822 string into its separate parts first.

    Ross
     
    rossriley, Jan 8, 2006 IP