GRUB2 extra: getdate
Type: command
Description:
  Add a 'getdate' command that will put the current date (or time) in a variable.

Build instructions:
  This should be used in a grub-extras context.
  grub-extras is meant to be used as an overlay on grub2 source tree.
  - Copy these sources to a subdirectory of grub contrib
    [grub2-2.00]$ mkdir grub-extras
    [grub2-2.00]$ export GRUB_CONTRIB="$PWD/grub-extras/"
    [grub2-2.00]$ cp -e ../getdate "$GRUB_CONTRIB"/
  - Build grub as usual.
