1DMI_GET_DATE(9)               Firmware Interfaces              DMI_GET_DATE(9)
2
3
4

NAME

6       dmi_get_date - parse a DMI date
7

SYNOPSIS

9       bool dmi_get_date(int field, int * yearp, int * monthp, int * dayp);
10

ARGUMENTS

12       field
13           data index (see enum dmi_field)
14
15       yearp
16           optional out parameter for the year
17
18       monthp
19           optional out parameter for the month
20
21       dayp
22           optional out parameter for the day
23

DESCRIPTION

25       The date field is assumed to be in the form resembling [mm[/dd]]/yy[yy]
26       and the result is stored in the out parameters any or all of which can
27       be omitted.
28
29       If the field doesn't exist, all out parameters are set to zero and
30       false is returned. Otherwise, true is returned with any invalid part of
31       date set to zero.
32
33       On return, year, month and day are guaranteed to be in the range of
34       [0,9999], [0,12] and [0,31] respectively.
35
37Kernel Hackers Manual 2.6.       November 2011                 DMI_GET_DATE(9)
Impressum