1 #ifndef PRINTINFO_H 2 #define PRINTINFO_H 3 4 #include <stdio.h> 5 #include <inttypes.h> 6 7 #include "process_int.h" 8 9 #define DATE_FORMAT "%5.4d-%2.2d-%2.2d" 10 #define TIME_FORMAT "%2.2d:%2.2d:%2.2d" 11 12 std::string datetime_to_string(int64_t date, int time); 13 std::string date_to_string(int64_t date); 14 std::string time_to_string(int time); 15 16 const char *comptype_to_name(int comptype); 17 18 void print_filetype(CdoStreamID p_streamID, int vlistID); 19 void print_grid_info(int vlistID); 20 void print_zaxis_info(int vlistID); 21 void print_subtype_info(int vlistID); 22 void print_timesteps(CdoStreamID streamID, int taxisID, int verbose); 23 24 #endif 25 /* 26 * Local Variables: 27 * c-file-style: "Java" 28 * c-basic-offset: 2 29 * indent-tabs-mode: nil 30 * show-trailing-whitespace: t 31 * require-trailing-newline: t 32 * End: 33 */ 34