diff --git a/__pycache__/mymodule.cpython-39.pyc b/__pycache__/mymodule.cpython-39.pyc index daf9833..a03234e 100644 Binary files a/__pycache__/mymodule.cpython-39.pyc and b/__pycache__/mymodule.cpython-39.pyc differ diff --git a/main.py b/main.py index 7c0204f..f2d4a67 100644 --- a/main.py +++ b/main.py @@ -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) diff --git a/mymodule.py b/mymodule.py index 0395ca6..35654d1 100644 --- a/mymodule.py +++ b/mymodule.py @@ -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)