| |
|
|
Clemens Meier | Gültigkeitsbereich: 1970 To 2099 Sommerzeit udn GMT go presently not yet berücksichtigt (would too only then objectively necessary, if one over the computer out times with others Rechnern vergleichen müsste; synchronisieren)
indicated of month's- and Wochentagsnamen are german. Wochennummern to ISO. and naturally can too defined data calculate, where The function the korrekte date again errechnet or. korrigiert.
The Idea comes from the PHP, the The functions date, mktime, time and isdate knows, XProfan but not. but with the I do, need over ands over again Datums- and Uhrzeitberechnungen. And if it only to check is, How long I worked have. - mktime errechnet The sec since the 01.01.1970 and the angegebenen date - fdate formiert the date, which through the sec indicated watts. - now is How mktime, only the always The Time between 01.01.1970 and the moment the Aufrufes accounts - isdate checks, whether the angegebene date validly is.
particularly The Formatierungsmöglichkeiten of fdate are quite bulkily, so that one with of/ one Programmzeile too The seltsamsten date- and Uhrzeitkonstruktionen hinbekommt, without something nachzurechnen.
More standing in the info.txt drin and the datumuhrzeit.prf stand a couple simply Examples drin.
would be me over Feedback forward
Greeting
Clemens |
|
|
| |
|
|
|
Sven Bader | i'm floored! not only that I found have I Search, i'm it too of php since dwelt very so with data To calculate. If the code no Bugs has is it perfect |
|
|
| |
|
|
|
| |
|
| |
|
|
|
Sven Bader | some Lines are with Semikolon abeschlossen, must to the now in Profan? Profan2CPP 1.1 coming with the Unterscheidungen zwsichen 1 and 2 Parameters in the If-request not zurecht or. the C-Compiler meckerte. the could I everything to fix and it functions wonderful. I use mainly The now() Function to Datumsdistanzen auszurechnen.
i'm noticed, that The functions visible Rechenzeit need in the Profan Interpreter. Optimierungsvorschläge for may part would something like How (60*60) as 3600 To write, faith not the the Compiler here of self optimiert. The Substr$() would I any through mid$() supplant.
Sincerely, Sven |
|
|
| |
|
|
|
Nico Madysa | Huh?! Semikolon? Perhaps is the a Possibility of XPSE, i'm not famous, that with the gewöhnlichem (X)Profan goes. |
|
|
| |
|
|
|
Nico Madysa | OK, there itself yet nobody gemeldet has, have I me The thing adopted. following two Lines terminate with Semikolon: CompileMarkSeparationmonatstage$ = 31,28,31,30,31,30,31,31,30,31,30,31;
monatstageS$ = 31,29,31,30,31,30,31,31,30,31,30,31 e> there this The only, me aufgefallenen, with Semikolon endenden Lines are, take I, it deals itself thereby circa a mistake in writing or a Schreibgewohnheit from PHP deals. i'd The Semikolons/Semikoli/Semikola/Semikolen In any drop Remove. |
|
|
| |
|
|
|
| xpse bemeckert the in function fdate end% twice declared is |
|
|
| |
|
|
|
| Hm Michaels function unixtime and Clemens its function now give different values back. |
|
|
| |
|
|