Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Deprecated: Function eregi() is deprecated in /blog/wp-content/plugins/tpbc.php on line 96 W tej poradzie przedstawię kilka operacji na datach w formacie RRRR-MM-DD. Taki format może być np. pobierany z formularzy podczas podawania daty urodzenia. Przykład: Kod: php
<?php $roznica_lata = ($data_obecna_unix - $data_urodz_unix) / (60*60*24*365.25); echo "Minely ".$roznica_lata." lata od daty Twoich urodzin <br />"; Pod zmienną $data_urodz możesz podstawić swoją datę urodzenia, a poznasz kilka ciekawych faktów. Autor: Adam Suchowski nowe Porady PHP » zobacz wszystkieWordPress database error: [Incorrect file format 'wp_comments']
|