Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sun Info with PHP
#!/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