Friday 13 April 2018

ASN.1: TIME-OF-DAY: Represent time of the day

Type: TIME-OF-DAY

Description: Used to represent time of the day. It is of the form "HH:MM:SS".

Example
startTime TIME-OF-DAY,
endTime TIME-OF-DAY

Example Schema
Event ::= SEQUENCE {
    eventName VisibleString,
    startTime TIME-OF-DAY,
    endTime TIME-OF-DAY
}

Sample data for above schema
eventOne Event ::= {
 eventName "Under 19 Tennis",
 startTime "18:30:23",
 endTime "18:30:23"
}

XML encoding of above data
<?xml version="1.0" encoding="UTF-8"?>
<Event>
  <eventName>Under 19 Tennis</eventName>
  <startTime>18:30:23</startTime>
  <endTime>18:30:23</endTime>
</Event>


Previous                                                 Next                                                 Home

No comments:

Post a Comment