$Sir DateFmt: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
(Automatically generated page update) |
||
Line 2: | Line 2: | ||
<span class="pageSubtitle">Validate datetime format</span> | <span class="pageSubtitle">Validate datetime format</span> | ||
<p class=" | <p class="warn"><b>Note: </b>Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $Sir_DateFmt function.</p> | ||
The <var>$Sir_DateFmt</var> function expects a datetime format string and returns the value 1 if the datetime format is valid, else the value 0. | The <var>$Sir_DateFmt</var> function expects a datetime format string and returns the value 1 if the datetime format is valid, else the value 0. |
Revision as of 18:59, 19 July 2013
Validate datetime format
Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $Sir_DateFmt function.
The $Sir_DateFmt function expects a datetime format string and returns the value 1 if the datetime format is valid, else the value 0.
Syntax
%tst = $Sir_DateFmt(fmt)
Syntax terms
%tst | Set to 1 if fmt is a valid datetime format string, otherwise set to 0. |
---|---|
fmt | Datetime format string. Refer to "Datetime string formats" for an explanation of valid datetime format strings. |
Usage notes
- This $function has no error conditions.
Example
The following fragment prints the string Good
:
%x = $Sir_DateFmt('CYYDDDHHMISSXXX') If %x = 1 Then Print 'Good' Else Print 'Bad' End If
Products authorizing $Sir_DateFmt
- Sirius functions
- Fast/Unload User Language Interface
- Janus Open Client
- Janus Open Server
- Janus Sockets
- Janus Web Server
- Japanese functions
- Sir2000 Field Migration Facility
- Sir2000 User Language Tools