/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/utils.c

  • Committer: Gustav Hartvigsson
  • Date: 2016-09-21 14:11:22 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160921141122-bc75r3e2enc04m8l
* Reorderd includes in SimpleTypeSystem.h
* Started work on SGlobalNotify
* Small changes to time function

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
   time_t t = time (NULL);
80
80
   struct timeval tv;
81
81
   gettimeofday (&tv, NULL);
82
 
   strftime (fmt, 50,"%Y-%m-%dT%H:%M:%S.%%06u%z", localtime (&t));
 
82
   strftime (fmt, 50,"%Y-%m-%dT%H:%M:%S.%%03u%z", localtime (&t));
83
83
   snprintf(ret_val, 50, fmt, tv.tv_usec);
84
84
   return ret_val;
85
85
}