DateTime Class

Namespace: id3.Bioseal

Definition

Represents a date/time.
class DateTime
class DateTime implements Finalizable
public partial class DateTime
public class DateTime implements AutoCloseable, Serializable
public class DateTime
typedef struct id3BiosealDateTime *ID3_BIOSEAL_DATE_TIME;

Usage

dateTimeInstance = id3bioseal.DateTime()

Explicit destruction

# ...
del dateTimeInstance
final dateTimeInstance = sdk.DateTime();
// ...

Explicit destruction

// ...
dateTimeInstance.dispose()
using (var dateTimeInstance = new DateTime())
{
   // ...
}

Explicit destruction

var dateTimeInstance = new DateTime()
// ...
dateTimeInstance.Dispose()
try (DateTime dateTimeInstance = new DateTime()) {
// ...
}

Explicit destruction

DateTime dateTimeInstance = new DateTime();
// ...
dateTimeInstance.close();
private var dateTimeInstance: DateTime? = nil
dateTimeInstance = try DateTime()
ID3_BIOSEAL_DATE_TIME hDateTime{};
int err = id3BiosealDateTime_Initialize(&hDateTime);
if (err == ID3_SUCCESS) {
    // ...
    id3BiosealDateTime_Dispose(&hDateTime);
}

Properties

Name

Type

Description

day

int

The day (1 through the number of days in month).

hour

int

The hour (0 through 23, -1 if invalid time).

minute

int

The minute (0 through 59).

month

int

The month (1 through 12).

second

int

The second (0 through 59).

year

int

The year (1 through 9999, 0 if invalid date).

Methods

Name

Description

isDateTimeValid

Indicates whether the date and time are valid.

isDateValid

Indicates whether the date is valid.

isTimeValid

Indicates whether the time is valid.

isValid

Indicates whether the date and/or time is valid.

toString

Convert the date/time to a string.