SnCore!

AtomDateConstruct Class Reference

The class representing all date contructs. More...

Inheritance diagram for AtomDateConstruct:

AtomElement

List of all members.


Public Member Functions

 AtomDateConstruct (Uri ns)
 Represents an AtomDateConstruct instance. Initialize the AtomElement.LocalName to modified, the DateTime to System.DateTime.Now and UtcOffset to DefaultValues.UtcOffset.
 AtomDateConstruct (string localName, Uri ns)
 Represents an AtomDateConstruct instance. Initialize the DateTime to System.DateTime.Now and UtcOffset to DefaultValues.UtcOffset.
 AtomDateConstruct (string localName, DateTime dateTime, Uri ns)
 Represents an AtomDateConstruct instance initialized with the given DateTime. The AtomDateConstruct.UtcOffset defaults to DefaultValues.UtcOffset.
 AtomDateConstruct (string localName, DateTime dateTime, TimeSpan utcOffset, Uri ns)
 Represents an AtomDateConstruct instance initialized with the given DateTime and offset.
override string ToString ()
 Converts the AtomDateConstruct in a series of xml nodes.

Protected Member Functions

internal override void WriteStartElement ()
 Writes the start tag of the element.
internal override void WriteEndElement ()
 Writes the end tag of the element.

Properties

DateTime DateTime [get, set]
 The date time of the date construct.
TimeSpan UtcOffset [get, set]
 The UTC offset of the date.

Detailed Description

The class representing all date contructs.


Constructor & Destructor Documentation

AtomDateConstruct ( Uri  ns  ) 

Represents an AtomDateConstruct instance. Initialize the AtomElement.LocalName to modified, the DateTime to System.DateTime.Now and UtcOffset to DefaultValues.UtcOffset.

AtomDateConstruct ( string  localName,
Uri  ns 
)

Represents an AtomDateConstruct instance. Initialize the DateTime to System.DateTime.Now and UtcOffset to DefaultValues.UtcOffset.

AtomDateConstruct ( string  localName,
DateTime  dateTime,
Uri  ns 
)

Represents an AtomDateConstruct instance initialized with the given DateTime. The AtomDateConstruct.UtcOffset defaults to DefaultValues.UtcOffset.

Parameters:
localName The not qualified name of the element.
dateTime The DateTime of the AtomDateConstruct instance.

AtomDateConstruct ( string  localName,
DateTime  dateTime,
TimeSpan  utcOffset,
Uri  ns 
)

Represents an AtomDateConstruct instance initialized with the given DateTime and offset.

Parameters:
localName The not qualified name of the element.
dateTime The DateTime of the AtomDateConstruct instance.
utcOffset The UtcOffset of the AtomDateConstruct instance.


Member Function Documentation

override string ToString (  ) 

Converts the AtomDateConstruct in a series of xml nodes.

Returns:
The string representation of AtomDateConstruct class.

internal override void WriteStartElement (  )  [protected, virtual]

Writes the start tag of the element.

Reimplemented from AtomElement.

internal override void WriteEndElement (  )  [protected, virtual]

Writes the end tag of the element.

Reimplemented from AtomElement.


Property Documentation

DateTime DateTime [get, set]

The date time of the date construct.

TimeSpan UtcOffset [get, set]

The UTC offset of the date.

Example:

TimeSpan utcOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Today)


The documentation for this class was generated from the following file:
  • AtomDateConstruct.cs
© Vestris Inc., 2006-2007, All Rights Reserved | SnCore | Wed Mar 5 09:56:24 2008 | Doxygen 1.5.4