home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>Second Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03030204"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> p.P1{ } span.T1{ font-weight:bold;} </style></head><body> <help:to-be-embedded Eid="second" xmlns:help="http://openoffice.org/2000/help"> <p class="Head1"><help:link Id="66629">Second Function [Runtime]</help:link></p> <p class="Paragraph">Returns an integer representing the second from the serial time number generated by TimeSerial or TimeValue.</p> </help:to-be-embedded> <p class="Paragraph"><span class="T1">Syntax</span>:</p> <p class="Paragraph">Second (Number) <help:key-word value="Second" tag="kw66629_1" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="Paragraph"><span class="T1">Return value</span>:</p> <p class="Paragraph">Integer</p> <p class="Paragraph"><span class="T1">Parameter</span>:</p> <p class="Paragraph">Number: Numeric expresion that contains the serial time number from which to calculate the second.</p> <p class="Paragraph">This function is the inverse function of <span class="T1">TimeSerial</span>. It returns the second of a specified serial time value generated by <span class="T1">TimeSerial</span> or <span class="T1">TimeValue</span>. Thus, the expression</p> <p class="Paragraph">Print Second(TimeSerial(12,30,41))</p> <p class="Paragraph">returns the value 41.</p> <p class="Paragraph"><span class="T1">Example:</span></p> <p class="PropText">Sub ExampleSecond</p> <p class="PropText">MsgBox "The exact second of the current time is "& Second( Now )</p> <p class="PropText">End sub</p> </body></html>