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

Class: DB_Table_Date

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

Class Overview


Generic date handling class for DB_Table.


Author(s):

Version:

  • Release: 1.5.6

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 63]
Generic date handling class for DB_Table.


[ Top ]


Class Variables

$day =

[line 79]

the day

Type:   int


[ Top ]

$hour =

[line 84]

the hour

Type:   int


[ Top ]

$minute =

[line 89]

the minute

Type:   int


[ Top ]

$month =

[line 74]

the month

Type:   int


[ Top ]

$partsecond =

[line 99]

the parts of a second

Type:   float


[ Top ]

$second =

[line 94]

the second

Type:   int


[ Top ]

$year =

[line 69]

the year

Type:   int


[ Top ]



Method Detail

DB_Table_Date (Constructor)   [line 110]

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 155]

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 15:28:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.