Overview

Namespaces

  • pgn
    • exceptions
    • tags
  • utils

Classes

  • Annotator
  • Black
  • BlackElo
  • BlackNA
  • BlackTitle
  • BlackType
  • BlackUSCF
  • Board
  • Date
  • ECO
  • Event
  • EventCountry
  • EventDate
  • EventRounds
  • EventSponsor
  • EventType
  • FEN
  • Mode
  • NIC
  • Opening
  • PlyCount
  • Result
  • Round
  • Section
  • SetUp
  • Site
  • Source
  • SourceDate
  • Stage
  • SubVariation
  • Tag
  • Termination
  • Time
  • TimeControl
  • UknownTag
  • UTCDate
  • UTCTime
  • Variation
  • White
  • WhiteElo
  • WhiteNA
  • WhiteTitle
  • WhiteType
  • WhiteUSCF
  • Overview
  • Namespace
  • Class

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
Extended by pgn\tags\Time

Direct known subclasses

pgn\tags\UTCTime
Namespace: pgn\tags
Author: Geraldo
See: pgn_standard.txt
Located at pgn/tags/Time.php
Methods summary
public the
# getName( )

Returns

the
name of the tag
public boolean
# validate( mixed $data )

Parameters

$data

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

pgn\tags\Tag::validate()
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

pgn\tags\Tag::validPattern()
Methods inherited from pgn\tags\Tag
__toString(), createTag(), formatted(), get(), getDefaultValue(), parse(), parseTagName(), parseTagValue(), set()
Properties inherited from pgn\tags\Tag
$data, $errorMsg
API documentation generated by ApiGen