 | MediaWikiHelperParseDateTime Method |
This is preliminary documentation and is subject to change.
Parses a
DateTime from MediaWiki API timestamp from the API response.
Namespace: WikiClientLibrary.InfrastructuresAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.4+fbadc980737ddc9bb67116900ecad57f84a0b241
Syntaxpublic static DateTime ParseDateTime(
string expression
)
Public Shared Function ParseDateTime (
expression As String
) As DateTime
Dim expression As String
Dim returnValue As DateTime
returnValue = MediaWikiHelper.ParseDateTime(expression)
public:
static DateTime ParseDateTime(
String^ expression
)
static member ParseDateTime :
expression : string -> DateTime Parameters
- expression String
- The timestamp expression to be parsed.
Return Value
DateTime
Exceptions
RemarksThis 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 AlsoReference
ParseDateTime(String)