Class Time
Description of Time:
This uses a time-of-day value in the form "HH:MM:SS"; similar to the Date tag
except that it denotes the local clock time (hours, minutes, and seconds) of
the start of the game. Note that colons, not periods, are used for field
separators for the Time tag value. The value is taken from the local time
corresponding to the location given in the Site tag pair.
-
pgn\tags\Tag
-
pgn\tags\Time
Methods summary
public
the
|
|
public
boolean
|
#
validate( mixed $data )
Parameters
Returns
boolean returns if a data is valid
Assert("-1:33:15")
=== false
Assert("00.00.00")
=== false
Assert("00:-1:15")
=== false
Assert("00:00:-1")
=== false
Assert("00:00:00")
=== true
Assert("19:33:15")
=== true
Assert("19:59:60")
=== false
Assert("19:60:00")
=== false
Assert("20:50:09")
=== true
Assert("23:59:59")
=== true
Assert("24:00:00")
=== false
Assert("a")
=== false
Assert(2)
=== false
Assert(null)
=== false
Overrides
|
public static
string
|
#
validPattern( )
Get the regex pattern of a valid FEN tag string
Get the regex pattern of a valid FEN tag string
Returns
string regex pattern of a valid SetUp tag string
Overrides
|