* Added method idatetime.join_values() .

This commit is contained in:
Wirawan Purwanto
2015-03-12 23:47:48 -04:00
parent 86e4e8fd51
commit 1c5ec91b64
2 changed files with 28 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ from time import localtime, gmtime, strftime
from wpylib.datetime0_idt import idatetime
from wpylib.datetime import utime_to_iso
from pprint import pprint
def test_idt_01():
@@ -17,6 +17,12 @@ def test_idt_01():
idt = idatetime(iidt)
print "integer value = %+18d" % idt.idt
print "iso8601 format = %s" % idt.str_iso8601()
R = idt.split_values()
print("split values:")
pprint(R.__dict__)
iidt_rejoined = idt.join_values(R)
print("iidt rejoined = %+18d" % iidt_rejoined)
def test_u2i_01():