Date
[ class tree: Date ] [ index: Date ] [ all elements ]

Class: DB_Table_Date

Source Location: /DB_Table-1.3.2/DB/Table/Date.php

Class Overview


Generic date handling class for DB_Table.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
Generic date handling class for DB_Table.


[ Top ]


Class Variables

$day =

[line 48]

the day

Type:   int


[ Top ]

$hour =

[line 53]

the hour

Type:   int


[ Top ]

$minute =

[line 58]

the minute

Type:   int


[ Top ]

$month =

[line 43]

the month

Type:   int


[ Top ]

$partsecond =

[line 68]

the parts of a second

Type:   float


[ Top ]

$second =

[line 63]

the second

Type:   int


[ Top ]

$year =

[line 38]

the year

Type:   int


[ Top ]



Method Detail

DB_Table_Date (Constructor)   [line 79]

DB_Table_Date DB_Table_Date( string $date)

Constructor

Creates a new DB_Table_Date Object. The date should be near to ISO 8601 format.

  • Access: public

Parameters:

string   $date   —  A date in ISO 8601 format.

[ Top ]

format   [line 124]

string format( string $format)

Date pretty printing, similar to strftime()

Formats the date in the given format, much like strftime(). Most strftime() options are supported.

formatting options:

  1. %Y
year as decimal including century (range 0000 to 9999)
  1. %m
month as decimal number (range 01 to 12)
  1. %d
day of month (range 00 to 31)
  1. %H
hour as decimal number (00 to 23)
  1. %M
minute as a decimal number (00 to 59)
  1. %S
seconds as a decimal number (00 to 59)
  1. %%
literal '%'

  • Return: date/time in given format
  • Access: public

Parameters:

string   $format   —  format the format string for returned date/time

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:42:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.