… or with fewer imports and rendering to a string:
```
```python
importos
importtime
@@ -41,7 +41,7 @@ date_str = time.strftime(
If you still require Python 2.x support, you will need to use the non-recommended [`datetime.utcfromtimestamp`](https://docs.python.org/3.8/library/datetime.html#datetime.datetime.utcfromtimestamp) method ([more info](https://blog.ganssle.io/articles/2019/11/utcnow.html)):
@@ -117,7 +117,7 @@ Note that the above will work only with GNU `date`; see the POSIX shell example
By deliberate design, [Meson does not provide access to environment variables in build files](https://github.com/mesonbuild/meson/issues/9#issuecomment-543780613) which makes accessing `SOURCE_DATE_EPOCH` troublesome.
@@ -442,19 +443,19 @@ In Debian, this is automatically set to the same time as the latest entry in `de
4. If none of the above options are good (you should have a ''very good reason'') then package maintainers may set and export this variable manually in `debian/rules`: