68 Classifieds API

Features
class tree: 68Classifieds | index: 68Classifieds | all elements

 Class Date

Description

Date manipulation class

This object allows the modification and manipulation of a date.

  • author: John Snyder
  • version: 0.1
  • copyright: Copyright (c) 2008, John Snyder
  • license: GNU Public License

Located in /includes/classes/format/Date.php (line 24)


	
			
Method Summary
 timestamp addDays (mixed $days, [mixed $timeStamp = null])
 unknown getDateTime ([mixed $timeStamp = null])
 string getUnixDate ([string $string = null])
 timestamp subtractDays (mixed $days, [mixed $timeStamp = null])
Methods
addDays (line 54)

Add days to a unix timestamp

  • return: time + days
timestamp addDays (mixed $days, [mixed $timeStamp = null])
  • mixed $days: integer or string value of days
  • mixed $timeStamp: integer or string unix timestamp, defaults to null
getDateTime (line 89)

Get the datetime of a timestamp or current

unknown getDateTime ([mixed $timeStamp = null])
  • mixed $timeStamp: string or integer value for unix time
getUnixDate (line 33)

Get the current unix date or convert datetime (y-m-d h:m:s) to unix format

  • return: or mktime from date string
string getUnixDate ([string $string = null])
  • string $string: y-m-d h:m:s
subtractDays (line 72)

Subtract days to a unix timestamp

  • return: time - days
timestamp subtractDays (mixed $days, [mixed $timeStamp = null])
  • mixed $days: integer or string value of days
  • mixed $timeStamp: integer or string unix timestamp, defaults to null