346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
OFXMLElement *element;
OFString *secondsString, *microsecondsString;
element = [OFXMLElement elementWithName: [self className]
namespace: OF_SERIALIZATION_NS];
secondsString = [OFString stringWithFormat: @"%" @PRId64, seconds];
microsecondsString = [OFString stringWithFormat: @"%" @PRId64,
microseconds];
[element addAttributeWithName: @"seconds"
stringValue: secondsString];
[element addAttributeWithName: @"microseconds"
stringValue: microsecondsString];
|
|
|
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
OFXMLElement *element;
OFString *secondsString, *microsecondsString;
element = [OFXMLElement elementWithName: [self className]
namespace: OF_SERIALIZATION_NS];
secondsString = [OFString stringWithFormat: @"%" @PRId64, seconds];
microsecondsString = [OFString stringWithFormat: @"%" @PRIu32,
microseconds];
[element addAttributeWithName: @"seconds"
stringValue: secondsString];
[element addAttributeWithName: @"microseconds"
stringValue: microsecondsString];
|