Fixes in datetime functions

This commit is contained in:
absurdo 2023-10-14 12:54:46 +02:00
parent e874bace60
commit 65ddc6f32f
2 changed files with 10 additions and 1 deletions

View file

@ -664,6 +664,15 @@ class TimeClass:
""" """
return self.t.format(self.format_date_full) 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): def local_to_utc(self):
"""Method for convert datetime from actual timezone to UTC""" """Method for convert datetime from actual timezone to UTC"""

View file

@ -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 # If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc
setup(name='paramecio2', setup(name='paramecio2',
version='2.0.24', version='2.0.25',
description='Simple Web Framework based in flask and Mako.', 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', 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', author='Antonio de la Rosa Caballero',