A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: 1 Million Dollars to the person who answers my PHP question!

  1. #1
    Griffhiggins 2.2 clifgriffin's Avatar
    Join Date
    May 2001
    Location
    Your Bathroom! Bwahahaha!
    Posts
    1,383

    1 Million Dollars to the person who answers my PHP question!



    Okay..help me stop from killing myself.

    How do I change a epoch date like 1043458414 to a standard pretty date like: Jan 9 2003, 07:21 AM using PHP?!

    Thank you kindly,
    Clif

  2. #2
    FK's Wave Pimp kamyab's Avatar
    Join Date
    Jan 2002
    Location
    Orange County, CA
    Posts
    1,210
    i've had the same problem for a while now.

  3. #3
    dIgital pHoto dude! TheEnigma's Avatar
    Join Date
    Sep 2000
    Location
    Maastricht, The Netherlands.
    Posts
    1,101
    WTF is an epoch date.
    Dont worry - im not fumb, just trying to breakinto server/client scripting, SQL, PHP the like. Just curious!
    Been a while since I was here! Might just stay around this time! | Check out my Deviations - all comments welcomed!


  4. #4
    Griffhiggins 2.2 clifgriffin's Avatar
    Join Date
    May 2001
    Location
    Your Bathroom! Bwahahaha!
    Posts
    1,383
    It's the seconds expired since 1/1/1970

  5. #5
    Moonlight shadow asheep_uk's Avatar
    Join Date
    Dec 2001
    Location
    London
    Posts
    2,010
    http://www.php.net/manual/en/function.date.php

    $epochdate = date("new date format");

    I think that will work.

  6. #6
    Griffhiggins 2.2 clifgriffin's Avatar
    Join Date
    May 2001
    Location
    Your Bathroom! Bwahahaha!
    Posts
    1,383
    There you are sheepy! My lifesaver!

    Actually..nerdles pointed me towards this:

    http://www.php.net/manual/en/function.strftime.php

    strftime("%B %m %whatever ", epoch time number);

    Works like a charm.

    Thanks guys..I'll contact the winner soon.

    Clif

  7. #7
    Civilian
    Join Date
    Jan 2002
    Location
    In the clouds
    Posts
    3,210
    No worries, Clif. I moved it for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center