C# Class DateFormat, simplexml

The DateFormat provides a synchronized means for using the simple date format object. It ensures that should there be many threads trying to gain access to the formatter that they will not collide causing a race condition.
Mostra file Open project: ngallagher/simplexml Class Usage Examples

Public Methods

Method Description
DateFormat ( String format ) : System.Collections.Generic

Constructor for the DateFormat object. This will wrap a simple date format, providing access to the conversion functions which allow date to string and string to date.

Private Methods

Method Description
GetDate ( String text ) : Date

This is used to provide a transformation from a string to a date. It ensures that there is a bidirectional transformation process which allows dates to be serialized and deserialized with XML.

GetText ( Date date ) : String

This is used to provide a transformation from a date to a string. It ensures that there is a bidirectional transformation process which allows dates to be serialized and deserialized with XML.

Method Details

DateFormat() public method

Constructor for the DateFormat object. This will wrap a simple date format, providing access to the conversion functions which allow date to string and string to date.
public DateFormat ( String format ) : System.Collections.Generic
format String /// this is the pattern to use for the date type ///
return System.Collections.Generic