return APP_ERROR_NONE;
}
+static void __print_time_info(watch_base_time_h time_h)
+{
+ if (time_h == NULL) {
+ _E("time handle is null!");
+ return;
+ }
+ _W("%d-%d-%d %d:%d:%d:%d (%s), dst(%d)",
+ time_h->year, time_h->month, time_h->day, time_h->hour24,
+ time_h->minute, time_h->second, time_h->millisecond,
+ time_h->timezone, time_h->indaylight);
+}
+
static void __on_time_tick(void *watchtime, void *data)
{
watch_base_time_tick_cb time_tick_cb;
- _I("_watch_base_signal_time_tick");
-
+ __print_time_info((watch_base_time_h)watchtime);
time_tick_cb = __context.callback.time_tick;
if (time_tick_cb != NULL)