So if you need to find out why Google calendars won't load it, use this great ics validator tool.
Adding the calendar:
Public Shared Function RoundedHour(ByVal dt As DateTime) As DateTime
Return DateTime.Parse( _
String.Format("{0:yyyy-MM-dd HH:00:00}", _
IIf(dt.Minute > 30, dt.AddHours(1), dt) _
)
End Function
public static DateTime RoundedHour(ByVal dt As DateTime) {
Return DateTime.Parse(
String.Format("{0:yyyy-MM-dd HH:00:00}",
(dt.Minute > 30 ? dt.AddHours(1) : dt)
)
}
$lastModifed = filemtime($dir);
print "Last modified on ".date("Y-m-d H:i:s", $lastModifed );