FoodCandy!

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
 The date time of the date construct.
TimeSpan UtcOffset
 The UTC offset of the date.

Detailed Description

The class representing all date contructs.


Constructor & Destructor Documentation

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.

Property Documentation

TimeSpan UtcOffset [get, set]
 

The UTC offset of the date.

Example:

TimeSpan utcOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Today)</code>

The documentation for this class was generated from the following file:
  • AtomDateConstruct.cs
© FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:51 2007 | Doxygen 1.4.6-NO