[Git][reproducible-builds/reproducible-website][master] 2 commits: Scala examples for SOURCE_DATE_EPOCH

Arnout Engelen gitlab at salsa.debian.org
Wed Jan 15 11:40:30 UTC 2020



Arnout Engelen pushed to branch master at Reproducible Builds / reproducible-website


Commits:
491fce13 by Arnout Engelen at 2020-01-15T12:33:12+01:00
Scala examples for SOURCE_DATE_EPOCH

- - - - -
e0039ee0 by Arnout Engelen at 2020-01-15T12:39:58+01:00
Some NixOS patches got merged

- - - - -


2 changed files:

- _docs/source-date-epoch.md
- _reports/2020-01.md


Changes:

=====================================
_docs/source-date-epoch.md
=====================================
@@ -319,6 +319,21 @@ end
 
 Note that Ruby's Datetime.strftime is locale-independent by default.
 
+### Scala
+
+To get milliseconds since Epoch:
+
+```scala
+sys.env.get("SOURCE_DATE_EPOCH").map(_.toLong * 1000)
+```
+
+To get a `java.util.Date`:
+
+```scala
+sys.env.get("SOURCE_DATE_EPOCH")
+  .map(sde => new java.util.Date(sde.toLong * 1000))
+```
+
 ### Last-resort using faketime
 
 ''As a last resort to be avoided where possible'' (e.g. if the upstream tool is too hard to patch, or too time-consuming for you right now to patch, or if they are being uncooperative or unresponsive), package maintainers may try something like the following:


=====================================
_reports/2020-01.md
=====================================
@@ -48,6 +48,13 @@ draft: true
 * Jelle van der Waa:
     * [gnutls](https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/gnutls&id=ef86c4da049e4bdbcee9898a9b9702f4bd9618b5) (remove timestamps from gz'd manpages)
 
+### NixOS
+
+* Arnout Engelen:
+    * [bash](https://github.com/NixOS/nixpkgs/pull/77196) (enable `PGRP_PIPE` regardless of build-time kernel version)
+    * [jitterentropy](https://github.com/NixOS/nixpkgs/pull/77202) (remove timestamps from gz'd manpages)
+    * [ms-sys](https://github.com/NixOS/nixpkgs/pull/77096) (remove timestamps from gz'd manpages)
+
 ## unsorted/FIXME
 
 * Holger updated reprotest to 0.7.12 to Debian unstable and PyPi, fixing problems with timeouts. (And with updating reprotest on PyPi.)



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/compare/5234a495f1bd84561d69b8e3c731fbb4d3e1feb7...e0039ee06a3b1f2785b50c570cea8324f1801085

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/compare/5234a495f1bd84561d69b8e3c731fbb4d3e1feb7...e0039ee06a3b1f2785b50c570cea8324f1801085
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200115/7c843401/attachment.htm>


More information about the rb-commits mailing list