Wanzyee Studio
DateTimeField

Wrapper of System.DateTime for serialization, the precision is seconds. More...

Public Member Functions

 DateTimeField (in DateTime value)
 Initialize with the specified System.DateTime. More...
 
override string ToString ()
 Return the date time text. More...
 

Static Public Member Functions

static implicit operator DateTimeField (DateTime value)
 Convert the specified System.DateTime to DateTimeField. More...
 
static implicit operator DateTime (DateTimeField value)
 Convert the specified DateTimeField to System.DateTime. More...
 

Public Attributes

DateTimeKind kind
 Based on UTC or local. More...
 
long tick
 The number of ticks. More...
 

Detailed Description

Wrapper of System.DateTime for serialization, the precision is seconds.

Constructor & Destructor Documentation

DateTimeField ( in DateTime  value)

Initialize with the specified System.DateTime.

Parameters
valueThe date time.

Member Function Documentation

override string ToString ( )

Return the date time text.

Returns
A string represents this.
static implicit operator DateTimeField ( DateTime  value)
static

Convert the specified System.DateTime to DateTimeField.

Parameters
valueThe date time.
Returns
Time.
static implicit operator DateTime ( DateTimeField  value)
static

Convert the specified DateTimeField to System.DateTime.

Parameters
valueThe time field.
Returns
Time.

Member Data Documentation

DateTimeKind kind

Based on UTC or local.

long tick

The number of ticks.