VirtualBox

Changeset 47 in kBuild


Ignore:
Timestamp:
Apr 4, 2003 12:23:44 AM (22 years ago)
Author:
bird
Message:

ISO Date/Time.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/config.h

    r46 r47  
    159159
    160160/*
     161 * USE_ISODATES
     162 *      If defined dates and times will be outputted in ISO format.
     163 */
     164#if defined(KMK)
     165#define USE_ISODATES 1
     166#endif
     167
     168
     169/*
    161170 * MAKE_NAME
    162171 *      The name of the make program as shown in the messages.
  • trunk/src/kmk/targ.c

    r46 r47  
    473473    parts = localtime(&time);
    474474
     475#ifdef USE_ISODATES
     476    sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d",
     477            parts->tm_year + 1900, parts->tm_mon, parts->tm_mday,
     478            parts->tm_hour, parts->tm_min, parts->tm_sec);
     479#else
    475480    strftime(buf, sizeof buf, "%k:%M:%S %b %d, %Y", parts);
    476481    buf[sizeof(buf) - 1] = '\0';
     482#endif
    477483    return(buf);
    478484}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette