summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-core.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2020-06-18 20:57:53 +0000
committerColin Walters <walters@verbum.org>2020-06-18 20:57:53 +0000
commitc87a4c71bc72f91ecd49320d3bf78aef08d97033 (patch)
tree1a15e6bab8d2a4495ac617501fef0f0bb26eb9cc /src/libostree/ostree-core.c
parent7c2d45e7cbc8a69605d427adff62637e4a8e7d5f (diff)
downloadostree-c87a4c71bc72f91ecd49320d3bf78aef08d97033.tar.gz
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.
Diffstat (limited to 'src/libostree/ostree-core.c')
-rw-r--r--src/libostree/ostree-core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c
index 48815bd3..523f57c0 100644
--- a/src/libostree/ostree-core.c
+++ b/src/libostree/ostree-core.c
@@ -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)
{