Changeset 131 for trunk/src/sh_hash.c
- Timestamp:
- Oct 22, 2007, 11:19:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_hash.c
r115 r131 3665 3665 time_t then = (time_t) p->theFile.mtime; 3666 3666 3667 #if defined(HAVE_PTHREAD) && defined (_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GMTIME_R) 3668 struct tm * time_ptr; 3669 struct tm time_tm; 3670 3671 time_ptr = gmtime_r(&then, &time_tm); 3672 strftime(thetime, 127, _("%b %d %Y"), time_ptr); 3673 time_ptr = gmtime_r(&now, &time_tm); 3674 strftime(nowtime, 127, _("%b %d %Y"), time_ptr); 3675 if (0 == strncmp(&nowtime[7], &thetime[7], 4)) 3676 { 3677 time_ptr = gmtime_r(&then, &time_tm); 3678 strftime(thetime, 127, _("%b %d %H:%M"), time_ptr); 3679 } 3680 #else 3667 3681 strftime(thetime, 127, _("%b %d %Y"), gmtime(&then)); 3668 3682 strftime(nowtime, 127, _("%b %d %Y"), gmtime(&now)); 3669 3683 if (0 == strncmp(&nowtime[7], &thetime[7], 4)) 3670 3684 strftime(thetime, 127, _("%b %d %H:%M"), gmtime(&then)); 3685 #endif 3671 3686 3672 3687 tmp = sh_util_safe_name(p->fullpath);
Note:
See TracChangeset
for help on using the changeset viewer.