projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c2d45e
)
core: Add documentation for ostree_commit_get_timestamp()
author
Colin Walters
<walters@verbum.org>
Thu, 18 Jun 2020 20:57:53 +0000
(20:57 +0000)
committer
Colin 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
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-core.c
b/src/libostree/ostree-core.c
index 48815bd342b411a0fc321ddb83d72dc49ef100c4..523f57c00168b222a3721848538dc3ec39eb4896 100644
(file)
--- 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)
{