Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DateTime Class Reference

Inheritance diagram for DateTime:

Formatter List of all members.

Static Public Member Functions

tChar[] format (long i)
tChar[] format (tChar[] buffer, long time)
long parse (tChar[] date, uint *ate=null)

Private Types

typedef char tChar
typedef void delegate (tChar[] s) FormatTarget

Private Member Functions

void emit (tChar[] x)
void setTarget (FormatTarget target)
void setTarget (IFormatTarget target)

Private Attributes

protected FormatTarget put

Member Typedef Documentation

typedef char tChar [inherited]
 

Definition at line 49 of file Formatter.d.

Referenced by Formatter::emit().

typedef void delegate(tChar[] s) FormatTarget [inherited]
 

Definition at line 51 of file Formatter.d.


Member Function Documentation

tChar [] format long  i  )  [inline, static]
 

Definition at line 56 of file DateTime.d.

tChar [] format tChar[]  buffer,
long  time
[inline, static]
 

Shamelessly plundered from std.date (with permission), this version avoids allocating memory.

Returns a populated slice of the provided buffer; with zero length if the date was invalid.

Note that this is just a stopgap implementation for now.

Definition at line 73 of file DateTime.d.

References assert(), and time.

long parse tChar[]  date,
uint *  ate = null
[inline, static]
 

Convert a string to a date. This is just a symmetrical wrapper around the Phobos functionality.

Note that this is just a stopgap implementation for now.

Definition at line 140 of file DateTime.d.

References assert().

void emit tChar[]  x  )  [inline, inherited]
 

Definition at line 59 of file Formatter.d.

References Formatter::put, and Formatter::tChar.

void setTarget FormatTarget  target  )  [inline, inherited]
 

Definition at line 68 of file Formatter.d.

References ColumnWriter::put.

Referenced by Formatter::setTarget().

void setTarget IFormatTarget  target  )  [inline, inherited]
 

Definition at line 77 of file Formatter.d.

References Formatter::setTarget().


Member Data Documentation

protected FormatTarget put [inherited]
 

Definition at line 53 of file Formatter.d.

Referenced by Formatter::emit().


The documentation for this class was generated from the following file:
Generated on Sat Apr 9 20:11:36 2005 for Mango by doxygen 1.3.6