Created
January 8, 2020 14:33
-
-
Save 2ndkauboy/5979a68b01635437f1d134d29321057d to your computer and use it in GitHub Desktop.
Sun Info with PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
php -r 'setlocale(LC_TIME, "de_DE.UTF-8"); date_default_timezone_set("Europe/Berlin"); print_r(array_map(function($time){ return strftime("%c", $time); }, date_sun_info(time(), 52.3918, 13.1126)));' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment