Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Question about Unix timestamp and PHP
Results 1 to 2 of 2

Thread: Question about Unix timestamp and PHP

  1. #1

    Question about Unix timestamp and PHP

    I dig PHP's handy date() function that allows you to format a date string out of a timestamp. But I have a project where it would be very useful if I could reverse generate a timestamp from a date/time. For example, I input something like "10/20/2004 12:01:00 PM" and the script generates the corresponding Unix timestamp.

    Anyone know how to do this with PHP?

  2. #2

    Re:Question about Unix timestamp and PHP

    Nevermind! strtotime(), I just found it in the PHP ref guide.

Similar Threads

  1. BS in CS and having to take a Unix class
    By Rastar in forum Linux - General Topics
    Replies: 2
    Last Post: 07-10-2003, 11:45 PM
  2. The Unix Way
    By cga in forum Linux - General Topics
    Replies: 11
    Last Post: 03-21-2003, 06:18 PM
  3. Mac and Unix/Linux
    By gmoreno in forum Linux Distros
    Replies: 9
    Last Post: 09-27-2002, 04:33 AM
  4. linux/unix boot script question
    By morphman in forum Programming
    Replies: 4
    Last Post: 05-31-2002, 12:50 PM
  5. IE for Unix
    By paradox in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 12-24-2001, 03:33 PM

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
  •