Fixes in datetime functions
This commit is contained in:
parent
e874bace60
commit
65ddc6f32f
2 changed files with 10 additions and 1 deletions
|
|
@ -665,6 +665,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"""
|
||||||
|
|
||||||
|
|
|
||||||
2
setup.py
2
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
|
# 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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue