Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Created January 8, 2020 14:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 2ndkauboy/5979a68b01635437f1d134d29321057d to your computer and use it in GitHub Desktop.
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