core: Add documentation for ostree_commit_get_timestamp()

Working on some rpm-ostree bits and was going to pass
this to the `chrono` crate and I forgot the format, went
to look at the docs.  Oops.
This commit is contained in:
Colin Walters 2020-06-18 20:57:53 +00:00
parent 7c2d45e7cb
commit c87a4c71bc
1 changed files with 7 additions and 0 deletions

View File

@ -2376,6 +2376,13 @@ ostree_commit_get_parent (GVariant *commit_variant)
return ostree_checksum_from_bytes_v (bytes);
}
/**
* ostree_commit_get_timestamp:
* @commit_variant: Commit object
*
* Returns: timestamp in seconds since the Unix epoch, UTC
* Since: 2016.3
*/
guint64
ostree_commit_get_timestamp (GVariant *commit_variant)
{