One Quickie


Making a timestamp with strftime (Unix API->General)
    time_t now;
    now = time(NULL);

    struct tm *tm;
    tm = localtime (&now);

    char timestamp[200];
    strftime (timestamp, 200, "%m/%d/%Y-%H:%M", tm);



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com