<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>ts2sci</title>
    <style type="text/css" media="all">
      @import url("scilab_code.css");
      @import url("xml_code.css");
      @import url("c_code.css");
      @import url("style.css");
    </style>
  </head>
  <body>
    <div class="manualnavbar">
    <table width="100%"><tr>
      <td width="30%">
    	<span class="previous"><a href="thingspeak_update.html">&lt;&lt; thingspeak_update</a></span>

      </td>
      <td width="40%" class="center">
      	<span class="top"><a href="section_9c3e1053082ce0c7fad9e3aa44c11dda.html">bytecode_iot_module</a></span>

      </td>
      <td width="30%" class="next">
      	<span class="next"><a href="ts2str.html">ts2str &gt;&gt;</a></span>

      </td>
    </tr></table>
      <hr />
    </div>



    <span class="path" dir="ltr"><a href="index.html">bytecode_iot_module</a> &gt;&gt; <a href="section_9c3e1053082ce0c7fad9e3aa44c11dda.html">bytecode_iot_module</a> &gt; ts2sci</span>

    <br /><br />
    <div class="refnamediv"><h1 class="refname">ts2sci</h1>
    <p class="refpurpose">Convert timestamp in milliseconds to serial date number, with GMT offset</p></div>


<div class="refsynopsisdiv"><h3 class="title">Syntax</h3>
   <div class="synopsis"><pre><span class="default">time_scilab</span><span class="default"> = </span><span class="functionid">ts2sci</span><span class="default">(</span><span class="default">timestamp</span><span class="default">,</span><span class="default">gmt</span><span class="default">)</span></pre></div></div>

<div class="refsection"><h3 class="title">Parameters</h3>
   <dl><dt><span class="term">timestamp :</span>
            <dd><p class="para">Time stamp in unix time milliseconds</p></dd></dt>
        <dt><span class="term">gmt :</span>
            <dd><p class="para">GMT offset to get the local time</p></dd></dt>
        <dt><span class="term">time_scilab :</span>
            <dd><p class="para">Serial date number in Scilab</p></dd></dt></dl></div>

<div class="refsection"><h3 class="title">Description</h3>
   <p class="para">Convert timestamp in milliseconds to serial date number, with GMT offset.</p>
   <p class="para"></p></div>

<div class="refsection"><h3 class="title">See also</h3>
   <ul class="itemizedlist"><li class="member"><a href="ts2str.html" class="link">ts2str</a> &#8212; Convert timestamp in milliseconds to human readable format, with GMT offset</li>
   <li class="member"><a href="ts2vec.html" class="link">ts2vec</a> &#8212; Convert timestamp in milliseconds to time vector, with GMT offset</li>
   <li class="member"><a href="vec2ts.html" class="link">vec2ts</a> &#8212; Convert time vector to timestamp in milliseconds, with GMT offset</li>
   <li class="member"><a href="sci2ts.html" class="link">sci2ts</a> &#8212; Convert serial date number to timestamp in milliseconds, with GMT offset</li>
   <li class="member"><a href="str2ts.html" class="link">str2ts</a> &#8212; Convert human readable format date to timestamp in milliseconds, with GMT offset</li></ul></div>

<div class="refsection"><h3 class="title">Authors</h3>
   <ul class="itemizedlist"><li class="member">C.L. Tan, Bytecode</li></ul></div>
    <br />

    <div class="manualnavbar">
    <table width="100%">
    <tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
      <td width="30%">
    	<span class="previous"><a href="thingspeak_update.html">&lt;&lt; thingspeak_update</a></span>

      </td>
      <td width="40%" class="center">
      	<span class="top"><a href="section_9c3e1053082ce0c7fad9e3aa44c11dda.html">bytecode_iot_module</a></span>

      </td>
      <td width="30%" class="next">
      	<span class="next"><a href="ts2str.html">ts2str &gt;&gt;</a></span>

      </td>
    </tr></table>
      <hr />
    </div>
  </body>
</html>
