+ Reference.reachabilityFence(time);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_PositiveTimestampCreationErrorZ ret_hu_conv = Result_PositiveTimestampCreationErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a `PositiveTimestamp` from a [`Duration`] since the Unix epoch in the range
+ * `0..=MAX_TIMESTAMP`.
+ *
+ * Otherwise, returns a [`CreationError::TimestampOutOfBounds`].
+ */
+ public static Result_PositiveTimestampCreationErrorZ from_duration_since_epoch(long duration) {
+ long ret = bindings.PositiveTimestamp_from_duration_since_epoch(duration);
+ Reference.reachabilityFence(duration);
+ if (ret >= 0 && ret <= 4096) { return null; }