IsValidTimeString

SUMMARY

IsValidTimeString - Checks for a valid time in a string

SYNTAX

IsValidTimeString(<FormatStr, TimeVal>);

ARGUMENTS

FormatStr (type:string)
Input format, see Time Format
TimeVal (type:integer)
The Time

DESCRIPTION

Stack
  1. Missing arguments are taken from the stack.(and removed from there).
  2. The result is pushed onto the stack.

Effect
It is checked whether a string contains a valid time (according the handed over format)

EXAMPLES

//Stack before: empty
//2000/13/34 is as invalid as 20:70
IsValidTimeString("YYYY-MM-DD hh:mm", "2000-13-34 20:70");
//Stack afterwards: (1 Element):
//false


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times