ZIP indir
0
main
1 dal
git@carbon4code.com:ahmet/Python-for-Data-Science.git
Ahmet Kerem Piscine Final
10 commit
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()