[Git][reproducible-builds/reproducible-website][master] In the Python SOURCE_DATE_EPOCH decumentation, clarify that the second example...

Chris Lamb gitlab at salsa.debian.org
Wed Jan 15 09:18:50 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
8eda3197 by Chris Lamb at 2020-01-15T09:18:28+00:00
In the Python SOURCE_DATE_EPOCH decumentation, clarify that the second example generates a str-type, not a datetime.datetime.

- - - - -


1 changed file:

- _docs/source-date-epoch.md


Changes:

=====================================
_docs/source-date-epoch.md
=====================================
@@ -87,7 +87,7 @@ import datetime
 build_date = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
 ```
 
-or with less imports:
+or with less imports, rendering to a string:
 
 ```
 import os



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/8eda31978a7682478a47bf356bf9ccac0ee27567

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/8eda31978a7682478a47bf356bf9ccac0ee27567
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/5f3e5058/attachment.htm>


More information about the rb-commits mailing list