core: Add documentation for ostree_commit_get_timestamp()
authorColin Walters <walters@verbum.org>
Thu, 18 Jun 2020 20:57:53 +0000 (20:57 +0000)
committerColin Walters <walters@verbum.org>
Thu, 18 Jun 2020 20:57:53 +0000 (20:57 +0000)
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.

src/libostree/ostree-core.c

index 48815bd342b411a0fc321ddb83d72dc49ef100c4..523f57c00168b222a3721848538dc3ec39eb4896 100644 (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)
 {