| |
|
|
 | function abgeschafft,
Funktionsweise becomes from the function time abgedeckt.
[OFFTOPIC]date([n[,{unixtime|datumstring}]]) gives one date as String back,
on the example the 1.2.3000:
date() without Parameter or first Parameter zero: 3000-02-01 date(0): 01.02.3000 (landesspezifisches stature, z.B. 10.12.1978) date(1): unbenutzt date(2): unbenutzt date(3): 30000201 (Datenbankformat) date(4): unbenutzt date(5): unbenutzt date(6): week-day 0-6, 0=Sonntag, 1=Montag, ... date(7): day in the month (1-31) date(8): month (1-12) date(9): year (yyyy) date(10): Kalenderwoche (1-53)
becomes the optionale Parameter unixtime indicated, then won't the actually date uses separate the date the angegebenen unixtime. actually (jetzige) unixtime can with the function time() determined go.
so is the morgige date always:
date(0,time()+60*60*24)
and the Gestrige:
date(0,time()-60*60*24)
Parameter 2 can also of type String his, becomes then interprets How of time Parameter 1, means:
is Parameter 2 one String, then becomes the date (Stringinhalt) as date red and Date uses The suitable Unixtime the Datums.
the date in the string must 2 Formate having:
a) yyyy-mm-dd[ hh[:mm[:ss]]] b) dd.mm.yyyy[ hh[:mm[:ss]]] Info: If date fails becomes zero zurückgegeben, not 0![/OFFTOPIC] |
|
|
| |
|
|
|
 | Date(0) gives now in the landesspezifischem stature from. |
|
|
| |
|
|
|
 | New:
date(6): week-day 0-6, 0=Sonntag, 1=Montag, ... date(7): day in the month (1-31) date(8): month (1-12) date(9): year (yyyy) date(10): Kalenderwoche (1-53)
example:
print date(10,time("22.12.2014")) // gives 52 from, likewise: print date(10) //Kalenderwoche of today |
|
|
| |
|
|
|
 | New:
Parameter 2 can now too of type String his, becomes then interprets How of time Parameter 1, means:
is Parameter 2 one String, then becomes the date (Stringinhalt) as date red and Date uses The suitable Unixtime the Datums.
the date in the string must 2 Formate having:
a) yyyy-mm-dd[ hh[:mm[:ss]]] b) dd.mm.yyyy[ hh[:mm[:ss]]] .
The Kalenderwoche one beliebigen Datums spend:
print date(10,"10.12.1978") |
|
|
| |
|
|
|
 | function abgeschafft,
Funktionsweise becomes from the function time [...] abgedeckt. |
|
|
| |
|
|