#include <NETGeographicLib.h>
Static Public Member Functions | |
static double | FractionalYear (System::String^s) |
Private Member Functions | |
Utility () | |
Utility library.
This class only exposes the GeographicLib::Utility::fractionalyear function.
Definition at line 270 of file NETGeographicLib.h.
|
inlineprivate |
Definition at line 274 of file NETGeographicLib.h.
|
static |
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.
Definition at line 53 of file NETGeographicLib.cpp.