Changeset b6d7f44 for src/libcfa/time.c
- Timestamp:
- May 6, 2018, 11:24:17 PM (5 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 01ff4e1, 10cfad9
- Parents:
- 7867eb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/time.c
r7867eb9 rb6d7f44 10 10 // Created On : Tue Mar 27 13:33:14 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at May 5 09:04:51201813 // Update Count : 3 612 // Last Modified On : Sun May 6 22:26:00 2018 13 // Update Count : 37 14 14 // 15 15 … … 89 89 tm tm; 90 90 gmtime_r( &s, &tm ); // tm_mon <= 11, tm_mday <= 31 91 #if defined(__GNUC__) && __GNUC__ >= 7 91 92 #pragma GCC diagnostic push 92 93 #pragma GCC diagnostic ignored "-Wformat-truncation" 94 #endif 93 95 snprintf( buf, 9, "%02d/%02d/%02d", tm.tm_year % 99, tm.tm_mon + 1, tm.tm_mday ); 96 #if defined(__GNUC__) && __GNUC__ >= 7 94 97 #pragma GCC diagnostic pop 98 #endif 95 99 return buf; 96 100 } // yy_mm_dd … … 100 104 tm tm; 101 105 gmtime_r( &s, &tm ); // tm_mon <= 11, tm_mday <= 31 106 #if defined(__GNUC__) && __GNUC__ >= 7 102 107 #pragma GCC diagnostic push 103 108 #pragma GCC diagnostic ignored "-Wformat-truncation" 109 #endif 104 110 snprintf( buf, 9, "%02d/%02d/%02d", tm.tm_mon + 1, tm.tm_mday, tm.tm_year % 99 ); 111 #if defined(__GNUC__) && __GNUC__ >= 7 105 112 #pragma GCC diagnostic pop 113 #endif 106 114 return buf; 107 115 } // mm_dd_yy … … 111 119 tm tm; 112 120 gmtime_r( &s, &tm ); // tm_mon <= 11, tm_mday <= 31 121 #if defined(__GNUC__) && __GNUC__ >= 7 113 122 #pragma GCC diagnostic push 114 123 #pragma GCC diagnostic ignored "-Wformat-truncation" 124 #endif 115 125 snprintf( buf, 9, "%02d/%02d/%02d", tm.tm_mday, tm.tm_mon + 1, tm.tm_year % 99 ); 126 #if defined(__GNUC__) && __GNUC__ >= 7 116 127 #pragma GCC diagnostic pop 128 #endif 117 129 return buf; 118 130 } // dd_mm_yy
Note: See TracChangeset
for help on using the changeset viewer.