<div dir="ltr"><div>This is incomplete:<br>```<br>def get_UbiTimestamp():<br>
        api = ApiClient(token='A1E-<wbr>6l4DwwC86SDR6QRTJWXGDwshTGPHFl<wbr>')<br>
        variable = api.get_variable('<wbr>5a5f80eec03f971388983b8e')<br>
<span class="gmail-im">        value = variable.get_values(1)[0]<br>
        timestamp = value.get('timestamp')<br>
</span>        t= mdate.epoch2num(raw)<br>
<br>
        return t<br>```<br></div>`raw` is undefined. Also, nothing in that traceback indicates a problem with datetime formatting, so what makes you think that is the problem?<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 2:07 AM, tia <span dir="ltr"><<a href="mailto:teernabachoo@gmail.com" target="_blank">teernabachoo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb">The error I believe is in the way the timestamp has been formatted.<br>
<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">--<br>
Sent from: <a href="http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.<wbr>nabble.com/matplotlib-users-<wbr>f3.html</a><br>
______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br>
</div></div></blockquote></div><br></div>