mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
10 lines
328 B
Python
Executable file
10 lines
328 B
Python
Executable file
#!/usr/bin/env python3
|
|
from datetime import datetime
|
|
|
|
# Outputs a version number to be tagged by github actions
|
|
if __name__ == "__main__":
|
|
now = datetime.utcnow()
|
|
modifier = int(
|
|
(now - now.replace(hour=0, minute=0, second=0, microsecond=0)).total_seconds()
|
|
)
|
|
print(now.strftime(f"%Y.%m.%d.{modifier}"))
|