Sets the datetime pointed to by
value corresponding to the datetime of the given field.
Caller is responsible for making sure the field exists and has the correct type.
value will point to a reference of the datetime which should be unreffed with
unref when no longer needed (note: this is inconsistent with e.g.
get_string which doesn't return a copy of the string).
the name of a field
a pointer to a DateTime to set