Test datetime.

This commit is contained in:
Captain ALM 2022-11-30 20:17:20 +00:00
parent d6c6b781d5
commit 83f2bd5d5d
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1
3 changed files with 11 additions and 13 deletions

Binary file not shown.

13
main.py
View File

@ -1,8 +1,7 @@
#Module test
import mymodule as m import mymodule as m
from mymodule import foo as bar x = m.gtime()
m.greeting(m.author) print(x.year)
import platform as plat print(type(x))
print(plat.system()) print(x.strftime("%A"))
print(dir(plat)) y = m.mdate(2022, 11, 30)
print(bar()) print(y)

View File

@ -1,6 +1,5 @@
def greeting(inpt): from datetime import datetime as dt
print(f"Hello {inpt}!") def gtime():
author = "Alfred" return dt.now()
def foo(): def mdate(y, mo, d):
print("Foo Fighters!") return dt(y, mo, d)
return "Bar"