Grass-valley K2 TX/MAM Database Protocol Manual v.2.2 Manual de usuario Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
TX/MAM Database Protocol Manual - document version: 2.2 Page 31
10.2 Converting human readable time and date string to a Cobalt time
field
int cob_timedate_to_msec( char *time, char *date, long long *time_date_msec );
Parameters
Name
Description
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".
long long
*time_date_msec
The resulting Cobalt time field.
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 human readable time and date to a Cobalt time field:
cob_msec_to_timedate( "13:00:00:00", "2006-10-06" , mainevent_datetime );
cob_fieldlist_clear();
cob_fieldlist_set_long( "start_datetime", mainevent_datetime, ORIGINAL_DATA );
if ( cob_adjust_field_values( "main_event", 1035 ) != 0 ){
/* Log error */
}
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 37 38

Comentarios a estos manuales

Sin comentarios