2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2010 Free Software Foundation, Inc.
5
* GRUB is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* GRUB is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19
#include <grub/datetime.h>
23
grub_get_datetime (struct grub_datetime *datetime)
28
mytime = time (&mytime);
29
mytm = gmtime (&mytime);
31
datetime->year = mytm->tm_year + 1900;
32
datetime->month = mytm->tm_mon + 1;
33
datetime->day = mytm->tm_mday;
34
datetime->hour = mytm->tm_hour;
35
datetime->minute = mytm->tm_min;
36
datetime->second = mytm->tm_sec;
42
grub_set_datetime (struct grub_datetime *datetime __attribute__ ((unused)))
44
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
45
"no clock setting routine available");