Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
Public Member Functions | Static Public Member Functions | List of all members
SolidFramework.Interop.DateTime Class Reference
Inheritance diagram for SolidFramework.Interop.DateTime:

Public Member Functions

virtual void Dispose ()
 
 DateTime (int year, int month, int day, int hour, int minute, int second, bool isLocal)
 
 DateTime (int year, int month, int day, int hour, int minute, int second)
 
int getYear ()
 
int getMonth ()
 
int getDay ()
 
int getHour ()
 
int getMinute ()
 
int getSecond ()
 
bool isLocalTime ()
 
void setIsLocalTime (bool isLocal)
 
string ToISOString ()
 Returns an ISO 8601 representation of the DateTime /summary>

Returns
The string representation of the DateTime in the format "yyyy-MM-ddTHH:mm:ss.fffZ".

 
string ToSortableString ()
 Returns a string representation of the DateTime that will be chronologically sortable for positive years. /summary>

Returns
The string representation of the DateTime in the format "yyyy-MM-dd HH:mm:ssZ".

 

Static Public Member Functions

static global::System.DateTime Parse (string date)
 Parses a DateTime from the specified string or throws an exception if it can't be parsed. More...
 
static bool TryParse (string date, out global::System.DateTime result)
 Attempts to parse a DateTime from the specified string. More...
 
static global::System.DateTime Now ()
 Creates a UTC DateTime based on the current system time. More...
 

Member Function Documentation

◆ Now()

static global.System.DateTime SolidFramework.Interop.DateTime.Now ( )
static

Creates a UTC DateTime based on the current system time.

Returns
A UTC DateTime based on the current system time.

◆ Parse()

static global.System.DateTime SolidFramework.Interop.DateTime.Parse ( string  date)
static

Parses a DateTime from the specified string or throws an exception if it can't be parsed.

Parameters
dateThe string to parse.
Returns
The DateTime that was parsed from the string.

◆ TryParse()

static bool SolidFramework.Interop.DateTime.TryParse ( string  date,
out global::System.DateTime  result 
)
static

Attempts to parse a DateTime from the specified string.

Parameters
dateThe string to parse.
resultA DateTime to store the result into. This will be set to null if date couldn't be parsed.
Returns
true if date was parsed successfully; otherwise, false.