ahmet / Python-for-Data-Science
Herkese Açık Ahmet Kerem Piscine Final
format_ft_time.py 358 B
import time
import datetime
def main() -> None:
"""Print the seconds since the epoch and today's formatted date."""
now = time.time()
print(
f"Seconds since January 1, 1970: {now:,.4f} "
f"or {now:.2e} in scientific notation"
)
print(datetime.datetime.now().strftime("%b %d %Y"))
if __name__ == "__main__":
main()