Little fixes
This commit is contained in:
parent
4b284dce0d
commit
6770a442e2
4 changed files with 44 additions and 5 deletions
|
|
@ -129,7 +129,7 @@ def checkdatetime(y, m, d, h, mi, s):
|
|||
except:
|
||||
return False
|
||||
|
||||
# Obtain the actual time in gmt
|
||||
# Obtain the actual time in local or gmt
|
||||
|
||||
def now(gmt=False):
|
||||
|
||||
|
|
@ -187,6 +187,10 @@ def format_date(timeform):
|
|||
|
||||
return format_datetime(format_date_txt, timeform, time.localtime)
|
||||
|
||||
def format_fulldate(timeform):
|
||||
|
||||
return format_datetime(format_date_txt+' '+format_time_txt, timeform, time.localtime)
|
||||
|
||||
def sum_utc(timestamp, offset):
|
||||
|
||||
return timestamp+offset
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ class ptemplate:
|
|||
|
||||
template_context=None
|
||||
|
||||
# A simple method used in internal things of paramecio
|
||||
|
||||
show_basic_template=True
|
||||
|
||||
def __init__(self, module):
|
||||
|
||||
module=path.dirname(module)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue