php – – datei() – Funkce zobrazující datum po roce 2038
Rozpracováno, ale tak nějak funguje 🙂 <?phpfunction datei(){ $format = „d.m.Y H:i:s“; $cas = time(); $chyba = „“; $test_datum = „/^[12]{1}\d{3}-[01]{1}\d{1}-[0-3]{1}\d{1}/“; $test_cas = „/[012]{1}\d{1}:[0-5]{1}\d{1}:[0-5]{1}\d{1}$/“; $test_datum_cas = „/^[12]{1}\d{3}-[01]{1}\d{1}-[0-3]{1}\d{1} [012]{1}\d{1}:[0-5]{1}\d{1}:[0-5]{1}\d{1}$/“; $test_format = „/^[\-\ \,\.\:YymndjHGis]*$/“; …