mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 06:57:56 -05:00
24 lines
590 B
Python
24 lines
590 B
Python
#
|
|
# Adapter for FormattedDate
|
|
#
|
|
#
|
|
# SOFTWARE HISTORY
|
|
#
|
|
# Date Ticket# Engineer Description
|
|
# ------------ ---------- ----------- --------------------------
|
|
# 9/21/2015 4486 rjpeter Initial creation.
|
|
#
|
|
|
|
from dynamicserialize.dstypes.com.raytheon.uf.common.time import FormattedDate
|
|
|
|
ClassAdapter = 'com.raytheon.uf.common.time.FormattedDate'
|
|
|
|
|
|
def serialize(context, date):
|
|
context.writeI64(date.getTime())
|
|
|
|
|
|
def deserialize(context):
|
|
result = FormattedDate()
|
|
result.setTime(context.readI64())
|
|
return result
|