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
from mymodule import foo as bar
m.greeting(m.author)
import platform as plat
print(plat.system())
print(dir(plat))
print(bar())
x = m.gtime()
print(x.year)
print(type(x))
print(x.strftime("%A"))
y = m.mdate(2022, 11, 30)
print(y)

View File

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