#!/usr/bin/python

#
# Copyright (c) 2007,2008,2009 MBARI
# MBARI Proprietary Information.  All Rights Reserved
#

from datetime import datetime
from time import mktime

class SlateRecord:

  def __init__(self, timestamp, data):
    self.timestamp = timestamp
    self.data = data

  def getTimestamp(self):
    return self.timestamp

  def getData(self):
    return self.data

  def getUnixTime(self):
    return mktime(self.timestamp.timetuple())+1e-6*self.timestamp.microsecond

