|static double||FractionalYear (System::String^ s)|
This class only exposes the GeographicLib::Utility::fractionalyear function.
Convert a string representing a date to a fractional year.
|[in]||s||the string to be converted.|
|GeographicErr||if s can't be interpreted as a date.|
The string is first read as an ordinary number (e.g., 2010 or 2012.5); if this is successful, the value is returned. Otherwise the string should be of the form yyyy-mm or yyyy-mm-dd and this is converted to a number with 2010-01-01 giving 2010.0 and 2012-07-03 giving 2012.5.