Date & time functions – Grass Valley K2 TX/MAM Database Protocol Manual v.2.2 User Manual
Page 30

TX/MAM Database Protocol Manual - document version: 2.2
– Page 30
10.
Date & time functions
Use following functions to work with the time and date formats as used in Cobalt.
10.1 Converting a Cobalt time field to two strings containing resp. the
time and date part
int cob_msec_to_timedate( long long time_date_msec, char *time, char *date );
Parameters
Name
Description
long long
time_date_msec
The Cobalt time field to convert.
char *time
The time part as a string, e.g. "13:00:00:00".
char *date
The date part as a string, e.g. "2006-10-06".
Result
The result of the function is an integer that can have following values:
Value
Description
0
Success, the time could be converted.
-1
Failure, the time could not be converted.
Example
Converting a start time to human readable format:
cob_msec_to_timedate( mainevent_datetime, time, date );
printf( "Main Event starts at %s, %s", time, date );
- LDK 5302 (24 pages)
- SFP Optical Converters (18 pages)
- 2000GEN (22 pages)
- 2011RDA (28 pages)
- 2010RDA-16 (28 pages)
- 2000NET v3.2.2 (72 pages)
- 2000NET v3.1 (68 pages)
- 2020DAC D-To-A (30 pages)
- 2000NET v4.0.0 (92 pages)
- 2020ADC A-To-D (32 pages)
- 2030RDA (36 pages)
- 2031RDA-SM (38 pages)
- 2041EDA (20 pages)
- 2040RDA (24 pages)
- 2041RDA (24 pages)
- 2042EDA (26 pages)
- 2090MDC (30 pages)
- 2040RDA-FR (52 pages)
- LDK 4021 (22 pages)
- 3DX-3901 (38 pages)
- LDK 4420 (82 pages)
- LDK 5307 (40 pages)
- Maestro Master Control Installation v.1.5.1 (455 pages)
- Maestro Master Control Installation v.1.5.1 (428 pages)
- 7600REF Installation (16 pages)
- 7600REF (84 pages)
- 8900FSS (18 pages)
- 8900GEN-SM (50 pages)
- 8900NET v.4.3.0 (108 pages)
- Safety Summary (17 pages)
- 8900NET v.4.0.0 (94 pages)
- 8906 (34 pages)
- 8911 (16 pages)
- 8900NET v.3.2.2 (78 pages)
- 8914 (18 pages)
- 8912RDA-D (20 pages)
- 8916 (26 pages)
- 8910ADA-SR (58 pages)
- 8920ADC v.2.0 (28 pages)
- 8920ADC v.2.0.1A (40 pages)
- 8920DAC (28 pages)
- 8920DMX (30 pages)
- 8920ADT (36 pages)
- 8920MUX (50 pages)
- 8921ADT (58 pages)