SalDateTime
PPJ.Runtime.SalDateTime
Last updated
PPJ.Runtime.SalDateTime
Last updated
Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.49 (4.9.0.0)
SAL Date/Time basic type. It wraps .NET native DateTime type. SalDateTime objects are automatically cast to and from DateTime.
Creates a new SalDateTime.
Name | Type | Description |
---|---|---|
x | DateTime initial value |
Create a new SalDateTime
Create a new SalDateTime
Create a new SalDateTime
SalDateTime: Returns the PC's current date/time.
Boolean: Checks if this SalDateTime object contain a null value.
Int64: Returns the number of ticks.
Boolean: Gets or sets a property that enables the automatic conversion of DateTime.MinValue SalDateTime.Null.
DateTime: Returns the inner DateTime value
Add days or fraction of days to the date.
Parameter | Type | Description |
---|---|---|
days |
Returns: SalDateTime.
Compares two SalDateTime
Parameter | Type | Description |
---|---|---|
x | ||
y |
Returns: Int32.
Compare to object
Parameter | Type | Description |
---|---|---|
obj |
Returns: Int32.
Compare to datetime
Parameter | Type | Description |
---|---|---|
x |
Returns: Int32.
Returns the day portion (1 to 31) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber.
Returns the hour portion (0 to 23) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber.
Returns the minute portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber.
Returns the month portion (1 to 12) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber.
Returns the date of the first day of the month or it returns DATETIME_Null if the value you specify is null. For example, if dtDateTime is December 25, 1992, SalDateMonthBegin returns December 1, 1992.
Returns: SalDateTime. dtMonthBegin
Returns the quarter of the year (1 to 4) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber. nQuarter
Returns the date of the first day of the quarter of a date/time value or it returns DATETIME_Null if the value you specify is null.
Returns: SalDateTime. dtQuarterBegin
Returns the seconds portion (0 to 59) of a date/time value or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber. nSeconds
Subtract SalDateTime from SalDateTime.
Parameter | Type | Description |
---|---|---|
x |
Returns: Double.
Returns the DateTime value.
Returns: DateTime.
Returns the date of the previous Monday or the current day if it is a Monday or it returns DATETIME_Null if the value you specify is null.
Returns: SalDateTime. dtWeekBegin
Returns the day of the week as a number between 0 and 6 or returns -1 if you specify DATETIME_Null as a parameter. 0 represents Saturday, 1 represents Sunday, and so on.
Returns: SalNumber.
Returns the year portion of a date or returns -1 if you specify DATETIME_Null as a parameter.
Returns: SalNumber.
Returns the date of the first day of the year or it returns DATETIME_Null if the value you specify is null.
Returns: SalDateTime. dtYearBegin
Name | Description |
---|---|
Returns the year portion of a date or returns -1 if you specify DATETIME_Null as a parameter. | |
Returns the date of the first day of the year or it returns DATETIME_Null if the value you specify is null. | |
Returns the PC's current date/time. | |
Returns the date of the previous Monday or the current day if it is a Monday or it returns DATETIME_Null if the value you specify is null. | |
Sets the modification date and time of the specified file. | |
Converts a string to a date/time value. | |
Stores a DateTime item in the safearray. | |
Multidimensional safe array | |
DateTime value property. | |
DateTime value property. | |