/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-08 13:12:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160908131227-xmu0qg97ddzne487
* made it return a ISO 8601 complient string

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-%d %H:%M:%S.%%06uZ%z", localtime (&t));
 
82
   strftime (fmt, 50,"%Y-%m-%dT%H:%M:%S.%%06uZ%z", localtime (&t));
83
83
   snprintf(ret_val, 50, fmt, tv.tv_usec);
84
84
   return ret_val;
85
85
}