English
Functions and Help

function: time

 
{null|long|string}=time([{long mode[,long Unixtime]|String date}])

without Parameter:

time gives whom undertow. Unix-Zeitstempel from: amount past sec since the 01.01.1970.

example:

Parameter 1-values:

negatives values are The TickCounter.
-3: amount since 01.01.1970 past Millisekunden
-2: amount since Hochfahren past Millisekunden abzgl. Standby-Time
-1: amount since Hochfahren past Millisekunden
0: HH:MM
1: SS.MS
2: HH:MM.SS
3: HH
4: MM
5: SS
6: yyyy-mm-dd
7: dd.mm.yyyy
8: landesspezifisches Datumformat, ie: dd.mm.yyyy
9: yyyymmddHHMMSS//Datenbankformat
10: yyyymmdd//Datenbankformat
11: day in the month (1-31)
12: month (1-12)
13: year
14: week-day 0-6, 0=sunday, 1=monday, ...
15: Kalenderwoche (1-53)

If zweiter Parameter given:

becomes one zweiter Parameter indicated then won't the actually Time uses separate the Time the as second Parameter übergebenen Unixtime.

so can The Uhrzeit + 1h spend:
print time(0,time()+60*60))

//

further Funktionalität the function time is the transfiguring one lesbaren Datums in the string back to a Unixtime:

is Parameter 1 one String, then becomes the date (Stringinhalt) as date red and time gives The suitable Unixtime from.

the date in the string must 2 Formate having:

a) point as Separator for dd.mm.yyyy
dd.mm.yyyy[ hh[:nn[:ss]]]
or

b) less as Separator for yyyy-mm-dd
yyyy-mm-dd[ hh[:nn[:ss]]]
(for minutes to demarcation of month time nn uses)

Optional can also a Uhrzeit include his, optional can The Uhrzeit too sec include: hh:nn[:ss] -

with indicated with Uhrzeit must The Uhrzeit with a Freizeichen of date separated his and with the Uhrzeit is for each worth the colon the Separator.

example for Rückwandlung date to Unixtime:
time("10.12.1978")
//or
time("1978-12-10")

and/ or with Uhrzeit:
time("10.12.1978 18:10")
//or
time("1978-12-10 18:10")

and/ or Uhrzeit with sec:
time("10.12.1978 18:10:35")
//or
time("1978-12-10 18:10:35")

so can a leserlichen date/ Zeitangabe The Unixtime rückrechnen - optimal for date/ Zeitberechnungen.

Keywords: time,date,gettickcount

 
12/03/14  
 



function correct - now with opt. Parameter:

If Parameter 1 the value 0 has then How with XProfan: hh:mm
If Parameter 1 the value 1 has then like with XProfan: ss.ms,
ms = Millisekunden differently as with XProfan instead of only 100stel genauere Millisekunden (1.000stel)
If Parameter 1 the value 2 has then: hh:mm.ss
 
12/21/14  
 



function over again correct:

becomes one zweiter Parameter indicated then won't the actually Time uses separate the Time the as second Parameter übergebenen Unixtime.

so can The Uhrzeit + 1h spend:

print time(0,time()+60*60))
 
12/22/14  
 



function over again correct:

is Parameter 1 one String, then becomes the date (Stringinhalt) as date red and time gives The suitable Unixtime from.

the date in the string must 2 Formate having:

a) yyyy-mm-dd[ hh[:mm[:ss]]]
b) dd.mm.yyyy[ hh[:mm[:ss]]]
a) point as Separator for dd.mm.yyyy or
b) less as Separator for yyyy-mm-dd

Optional can also a Uhrzeit include his, optional can The Uhrzeit too sec include: hh:mm[:ss] -

with indicated with Uhrzeit must The Uhrzeit with a Freizeichen of date separated his and with the Uhrzeit is for each worth the colon the Separator.

example for Rückwandlung date to Unixtime:

time("10.12.1978")
or
time("1978-12-10")

and/ or with Uhrzeit:

time("10.12.1978 18:10")
or
time("1978-12-10 18:10")

and/ or Uhrzeit with sec:

time("10.12.1978 18:10:35")
or
time("1978-12-10 18:10:35")

so can a leserlichen date/ Zeitangabe The Unixtime rückrechnen - optimal for date/ Zeitberechnungen.
 
12/27/14  
 




E.T.
[OFFTOPIC]You points on The second very, when You born are ??
mean I you not [/OFFTOPIC]
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/27/14  
 



No, naturally not - but the Zeitzone!
 
12/27/14  
 



New:

Parameter 1 worth -1:
amount since Hochfahren the Gerätes past Millisekunden (How XProfan)

Parameter 1 worth -2:
amount since Hochfahren the Gerätes past Millisekunden minus the amount past Millisekunden in the Standby.

Parameter 1 worth -3:
amount since 01.01.1970 past Millisekunden.
 
12/27/14  
 



The function time is yet one Piece mächtiger and can as Timer uses go z.B. circa a Proc to Time x aufzurufen einmalig or over ands over again.

is the first Parameter a Proc, then is the worth behind Parameter 2 (optional) The Number of To vergehenden Millisekunden until Calling the Proc and the dritte Parameter (too optional) can true or false (default) his whether the appeal wiederkehrend or only einmalig come off should. It can too one 4. Parameter (optional) indicated go, userdata The on The timerproc transfer go should as Parameter. can also one aray his and a assoziatives circa as much as you want values transfer to.

Zurückgegeben becomes one Timer-lever. circa a Timer (ggf. vorzeitig) To terminate can the How follows vorgegangen go: time(zero,zero,timerhandle)

is the first Parameter a Proc and go No further Parameter indicated, then becomes The function crept to 20ms called or. zeitversetzt or. if The actually Abarbeitung exits is.

These Timer wirken into master-Thread injiziert and grab once this idle is.

Examples:

Proc to 2000ms perform:

proc meineTimerProc
print "Timer!!!"
endproc

time(meineTimerProc,2000)

any 2000ms perform:

time(meineTimerProc,2000,true)

Timer terminate:

var mytimer=time(meineTimerProc,2000,true)
time(zero,zero,mytimer) // exits timer same again
 
12/27/14  
 




HofK
Time and Android versions?

with the Progrämmchen
//TEST
print "Datum and Uhrzeit"
var para1 = -3

while para1 <= 15

    print time para1
    para1++

endwhile


wished I me only short The Datums/Zeitformen Overview look at.
on the Tablet 4.4 Kitkat
on the Phone 4.3 JellyBean



with Settings Time/date have I with both Geräten The solid Variante TT.MM.JJJJ and Regional probiert.
 
11/18/15  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

10.726 Views

Untitledvor 0 min.
Thomas Freier07/21/18
maroro04/13/18
Michael W.04/09/16
Nico Madysa03/28/16
More...

Themeninformationen

this Topic has 3 subscriber:

iF (7x)
HofK (1x)
E.T. (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie