phpDocumentor date
[ class tree: date ] [ index: date ] [ all elements ]

Class: DATE

Source Location: /funzioni_data.inc

Class DATE

Descendants
Child Class Description
TIMESTAMP Classe che rappresenta un timestamp (data e ora)

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From TIMEBASE

TIMEBASE::$DB
TIMEBASE::$DB_ISO
TIMEBASE::$ISO
TIMEBASE::$ISO_SEARCH_Y
TIMEBASE::$REV
TIMEBASE::$REV_SEARCH_Y
TIMEBASE::$USER
TIMEBASE::$USER_SEARCH_Y

Inherited From TIMEBASE

TIMEBASE::any_2_ts()
Funzione in grado di trasformare un oggetto da qualunque formato a "timestamp esteso"
TIMEBASE::db_2_iso()
TIMEBASE::db_2_ts()
TIMEBASE::db_2_user()
TIMEBASE::iso_2_db()
TIMEBASE::iso_2_ts()
TIMEBASE::iso_2_user()
TIMEBASE::mktime()
Funzione che ritorna un timestamp semplice date le parti della data ricavate da strptime
TIMEBASE::ts_2_any()
Funzione in grado di trasformare un "timestamp esteso" in qualunque altro formato
TIMEBASE::ts_2_db()
TIMEBASE::ts_2_iso()
TIMEBASE::ts_2_user()
TIMEBASE::user_2_db()
TIMEBASE::user_2_iso()
TIMEBASE::user_2_ts()

[ Top ]
Method Summary
DATE   __construct()   Costruisce una data per interagire con un certo dbms
void   any_2_ts()  
string   iso_add()   Aggiunge una parte a una data ISO, ritornando un'altra data ISO
string   iso_add_parts()   Aggiunge varie parti a una data ISO, ritornando un'altra data ISO
void   mktime()  
integer   shift_year()   Dato un anno, ne ritorna un altro con struttura corrispondente, nel range manipolabile dal sistema
void   ts_2_any()  

[ Top ]
Methods
Constructor __construct  [line 157]

  DATE __construct( string $db  )

Costruisce una data per interagire con un certo dbms

Parameters:
string   $db:  FBIRD, MYSQL, MSSQL, ODBC, ...

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
any_2_ts  [line 175]

  void any_2_ts( $any, $fmt, $search_y  )

Parameters:
   $any: 
   $fmt: 
   $search_y: 

API Tags:
Access:  protected


Redefinition of:
TIMEBASE::any_2_ts()
Funzione in grado di trasformare un oggetto da qualunque formato a "timestamp esteso"

[ Top ]
iso_add  [line 263]

  string iso_add( string $iso, string $part, integer $amount, [integer $gap = 1]  )

Aggiunge una parte a una data ISO, ritornando un'altra data ISO

Parameters:
string   $iso:  Data in formato ISO
string   $part:  Parte da aggiungere (Y m d H i)
integer   $amount:  Quantita' da aggiungere
integer   $gap:  Massima quantita' da aggiungere per iterazione

API Tags:
Access:  public


[ Top ]
iso_add_parts  [line 300]

  string iso_add_parts( string $iso, $parts, array $part  )

Aggiunge varie parti a una data ISO, ritornando un'altra data ISO

Parameters:
string   $iso:  Data in formato ISO
array   $part:  Parti da aggiungere (Y m d H i) con relativa quantita': array('Y' => 12, 'm' => 4)
   $parts: 

API Tags:
Access:  public


[ Top ]
mktime  [line 169]

  void mktime( $parts  )

Parameters:
   $parts: 

API Tags:
Access:  protected


Redefinition of:
TIMEBASE::mktime()
Funzione che ritorna un timestamp semplice date le parti della data ricavate da strptime

Redefined in descendants as:

[ Top ]
shift_year  [line 222]

  integer shift_year( integer $year, &$shift, integer $shift  )

Dato un anno, ne ritorna un altro con struttura corrispondente, nel range manipolabile dal sistema

Parameters:
integer   $year:  Anno da traslare
integer   $shift:  Numero di anni di cui รจ stato traslato
   &$shift: 

API Tags:
Access:  public


[ Top ]
ts_2_any  [line 203]

  void ts_2_any( $ts, $fmt, $search_y  )

Parameters:
   $ts: 
   $fmt: 
   $search_y: 

API Tags:
Access:  protected


Redefinition of:
TIMEBASE::ts_2_any()
Funzione in grado di trasformare un "timestamp esteso" in qualunque altro formato

[ Top ]

Documentation generated on Thu, 25 Sep 2008 23:29:24 +0200 by phpDocumentor 1.4.0