#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    166
    Rep Power
    14
    I want to find the number of seconds before the end of the current month, and return that value as a "$variable"

    Would you please let me have an example of the best way to achieve that.

    Many thanks

    David
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    14
    $secondsleft will contain the number of seconds till the 24th hour of the last day of the month

    $secondsleft=(mktime(0,0,0,date("m") + 1,0,date("Y")) - time());

Similar Threads

  1. DB2 SQL Optimazation
    By act7656 in forum DB2 Development
    Replies: 1
    Last Post: June 8th, 2004, 10:49 PM
  2. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 16th, 2004, 11:21 PM
  3. how do I save a web page in VB6?
    By rabid lemming in forum Visual Basic Programming
    Replies: 5
    Last Post: January 9th, 2004, 02:36 AM
  4. Mind Boggling Serialization Error
    By bergy in forum Visual Basic Programming
    Replies: 3
    Last Post: January 6th, 2004, 02:13 PM
  5. SYBASE Question with last month end date
    By llccoo in forum Database Management
    Replies: 0
    Last Post: December 21st, 2003, 03:00 PM

IMN logo majestic logo threadwatch logo seochat tools logo