Lines Matching refs:datetime
1 /* date.c - command to display/set current datetime. */
23 #include <grub/datetime.h>
40 struct grub_datetime datetime;
46 if (grub_get_datetime (&datetime))
50 datetime.year, datetime.month, datetime.day,
51 datetime.hour, datetime.minute, datetime.second,
52 grub_get_weekday_name (&datetime));
108 if (grub_get_datetime (&datetime))
112 datetime.year = value[0];
115 datetime.month = value[1];
118 datetime.day = value[2];
121 datetime.hour = value[3];
124 datetime.minute = value[4];
127 datetime.second = value[5];
129 return grub_set_datetime (&datetime);
132 return grub_error (GRUB_ERR_BAD_ARGUMENT, "invalid datetime");
142 N_("Command to display/set current datetime."));