Home
    Contact Us
    Links




    Computer Tools

        Pro Clip Library
               Description
               Download

        Remember Any Command
        Your custom Shortcuts

    Business Resources

        Instant Business Card
               Design
               Samples
               Resources
               Download
               Help

       Online Invoice

    Genealogy Tools
        History
        Download

   PHP DateDiff v1.0






  Instant Business Card -    Tuesday - March 9, 2010  

Multi-Platform PHP DateDiff v1.0

Many of the PHP commands associated to dates only work on Linux. Getting the current date works fine on any operating system. However getting the month, year or the difference between two dates returns random information. The Multi-Platform PHP DateDiff v1.0 is a set of date functions that work on any operating system that PHP does.

The date functions depend on the date format being consistent. The date format is RFC 822 format and can be produced by date('r') command.

example: "Mon, 2 Oct 2000 12:30:28 -0800"

If the data you are working with does not conform to this format then write a function that modifies converts current dates to the the required format.

Available Functions
  • datediff
  • datebreakdown
  • serializedate
  • isleapyear
  • numberofdaysinmonth

Download



















© Copyright 2001-2005 NetProFX.com All rights reserved.