| MediaWikiHelperParseDateTimeOffset Method |
This is preliminary documentation and is subject to change.
Parses a
DateTimeOffset from MediaWiki API timestamp from the API response.
Namespace: WikiClientLibrary.InfrastructuresAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static DateTimeOffset ParseDateTimeOffset(
string expression
)
Public Shared Function ParseDateTimeOffset (
expression As String
) As DateTimeOffset
Dim expression As String
Dim returnValue As DateTimeOffset
returnValue = MediaWikiHelper.ParseDateTimeOffset(expression)
public:
static DateTimeOffset ParseDateTimeOffset(
String^ expression
)
static member ParseDateTimeOffset :
expression : string -> DateTimeOffset
Parameters
- expression String
- The timestamp expression to be parsed.
Return Value
DateTimeOffsetExceptions Remarks This converter handles the following JSON string values as MaxValue or MaxValue:
- infinity
- infinite
- indefinite
- never
For now this method supports conversion of ISO 8601 format. If you are using this class
and need more support within the API specification linked below, please open an issue in WCL
repository.
See mw:API:Data formats#Timestamps
for more information.
See Also