Little fixes

This commit is contained in:
Antonio de la Rosa 2016-01-14 02:24:13 +01:00
parent 4b284dce0d
commit 6770a442e2
4 changed files with 44 additions and 5 deletions

View file

@ -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

View file

@ -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)