import { type DataViewReader } from "./data-view-reader.js"; /** *

The Date Time characteristic is used to represent time.

*

The Date Time characteristic contains fields for year, month, day, hours, minutes and seconds. Calendar days in Date Time are represented using Gregorian calendar. Hours in Date Time are represented in the 24h system.

*/ export interface DateTime { /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.time.day`

*

Day of the month as defined by the Gregorian calendar.

*

Minimum: 1

*

Maximum: 31

*/ day: number; /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.time.hour`

*

Number of hours past midnight.

*

Minimum: 0

*

Maximum: 23

*/ hours: number; /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.time.minute`

*

Number of minutes since the start of the hour.

*

Minimum: 0

*

Maximum: 59

*/ minutes: number; /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.time.month`

*

Month of the year as defined by the Gregorian calendar.

*

Minimum: 0

*

Maximum: 12

* | Key | Description | * | --- | ------------------ | * | 0 | Month is not known | * | 1 | January | * | 2 | February | * | 3 | March | * | 4 | April | * | 5 | May | * | 6 | June | * | 7 | July | * | 8 | August | * | 9 | September | * | 10 | October | * | 11 | November | * | 12 | December | * */ month: number; /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.time.second`

*

Number of seconds since the start of the minute.

*

Minimum: 0

*

Maximum: 59

*/ seconds: number; /** *

Format: `uint16`

*

Unit: `org.bluetooth.unit.time.year`

*

Year as defined by the Gregorian calendar.

*

Minimum: 1582

*

Maximum: 9999

*/ year: number; } /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.date_time.xml | Date Time} */ export declare class DateTimeImpl implements DateTime { static readonly UUID_PREFIX = 10760; static readonly TYPE_NAME = "org.bluetooth.characteristic.date_time"; static readonly NAME = "Date Time"; /** Parse from a DataView into {@link DateTime}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): DateTimeImpl; readonly day: number; readonly hours: number; readonly minutes: number; readonly month: number; readonly seconds: number; readonly year: number; constructor(dateTime: DateTime); } /** Parse from a DataView into {@link DateTime}. */ export declare function dateTimeFromDataView(dataView: DataView | DataViewReader, indexStart?: number): DateTime; //# sourceMappingURL=date-time.d.ts.map