MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / print_timestamp

Function print_timestamp

examples/cpp_api/quickstart_dimension_labels.cc:71–76  ·  view source on GitHub ↗

* Print timestamp in form HH:MM:SS. * * @param timestamp Timestamp to print in raw seconds. */

Source from the content-addressed store, hash-verified

69 * @param timestamp Timestamp to print in raw seconds.
70 */
71void print_timestamp(int64_t timestamp) {
72 int64_t hr = timestamp / 3600;
73 int64_t min = (timestamp - (hr * 3600)) / 60;
74 int64_t sec = timestamp - hr * 3600 - min * 60;
75 printf("%ld:%ld:%ld", (long)hr, (long)min, (long)sec);
76}
77
78/**
79 * Create a TileDB array with dimension labels.

Callers 3

read_array_and_labelsFunction · 0.70
read_timestamp_dataFunction · 0.70
read_array_by_labelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected