diff --git a/paramecio2/libraries/datetime.py b/paramecio2/libraries/datetime.py index 9ad9703..e1d6d6f 100644 --- a/paramecio2/libraries/datetime.py +++ b/paramecio2/libraries/datetime.py @@ -664,6 +664,15 @@ class TimeClass: """ return self.t.format(self.format_date_full) + + def format_datetime(self): + """Method for get datetime formatted using format_time attribute + + Returns: + Datetime formatted with format_time attribute + """ + + return self.t.format(self.format_time) def local_to_utc(self): """Method for convert datetime from actual timezone to UTC""" diff --git a/setup.py b/setup.py index b1675cd..698a3ef 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ if sys.version_info < (3, 8): # If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc setup(name='paramecio2', - version='2.0.24', + version='2.0.25', description='Simple Web Framework based in flask and Mako.', long_description='This framework is a simple framework used for create web apps. Paramecio is modular and fast. By default have a module called admin that can be used for create admin sites', author='Antonio de la Rosa Caballero',