[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/I18N/ -> TDateFormat.php (sommaire)

TDateFromat formatting component.

Author: Wei Zhuo
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TDateFormat.php 1397 2006-09-07 07:55:53Z wei $
Poids: 199 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TDateFormat:: (7 méthodes):
  setPattern()
  getPattern()
  getPreset()
  getValue()
  setValue()
  getFormattedDate()
  render()


Classe: TDateFormat  - X-Ref

To format dates and/or time according to the current locale use
<code>
<com:TDateFormat Pattern="dd:MMM:yyyy" Value="01/01/2001" />
</code>
The date will be formatted according to the current locale (or culture)
using the format specified by 'Pattern' attribute.

To format date and/or time for a locale (e.g. de_DE) include a Culture
attribute, for example:
<code>
<com:TDateFormat Culture="de_DE" Value="01/01/2001 12:00" />
</code>
The date will be formatted according to this format.

If no Pattern was specified then the date will be formatted with the
default format (both date and time). If no value for the date is specified
then the current date will be used. E.g.: <code><com:TDateFormat /></code>
will result in the current date, formatted with default localized pattern.

Namespace: System.I18N

Properties
- <b>Value</b>, date,
<br>Gets or sets the date to format. The tag content is used as Value
if the Value property is not specified.
- <b>Pattern</b>, string,
<br>Gets or sets the formatting pattern. The predefined patterns are
'fulldate',           'longdate', 'mediumdate', 'shortdate', 'fulltime',
'longtime', 'mediumtime', and 'shorttime'. Custom patterns can   specified
when the Pattern property does not match the predefined   patterns.

setPattern($value)   X-Ref
Sets the date time formatting pattern.

param: string format pattern.

getPattern()   X-Ref
Gets the date time format pattern.

return: string format pattern.

getPreset($string)   X-Ref
For a given string, try and find a preset pattern.

param: string the preset pattern name
return: string a preset pattern if found, null otherwise.

getValue()   X-Ref
Get the date-time value for this control.

return: string date time value.

setValue($value)   X-Ref
Set the date-time value for this control.

param: string the date-time value.

getFormattedDate()   X-Ref
Renders the localized version of the date-time value.
If the culture is not specified, the default application
culture will be used.
This method overrides parent's implementation.


render($writer)   X-Ref
Pas de description



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7