SECELAPSED/de

Aus MCS Wiki AVR
< SECELAPSED
Version vom 12. Februar 2013, 00:48 Uhr von Admin (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

= (**COPIED FROM ENGLISH PAGE**) === Action

Returns the elapsed Seconds to a former assigned time-stamp.

 

 

Syntax

Target = SECELAPSED(TimeStamp)

 

 

Remarks

Target

A variable (LONG), that is assigned with the elapsed Seconds

TimeStamp

A variable (LONG), which holds a timestamp like the output of an earlier called SecOfDay()

 

The Function works with the SOFTCLOCK variables _sec, _min and _hour and considers a jump over midnight and gives a correct result within 24 hour between two events.

 

The Return-Value is in the range of 0 to 86399.

 

See also

Date and Time Routines , SecOfDay , SysSecElapsed

 

 

Partial Example


Lsecofday = Secofday()
_hour = _hour + 1
Lvar1 = Secelapsed(lsecofday)
Print Lvar1

Languages   English Deutsch  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache