소스 검색

Rearrange date format in file details

master
Arun Prakash Jana 6 년 전
부모
커밋
5876c61f4c
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      nnn.c

+ 3
- 3
nnn.c 파일 보기

@@ -1582,15 +1582,15 @@ show_stats(char *fpath, char *fname, struct stat *sb)
sb->st_mode & 7, perms, sb->st_uid, (getpwuid(sb->st_uid))->pw_name, sb->st_gid, (getgrgid(sb->st_gid))->gr_name);

/* Show last access time */
strftime(g_buf, 40, "%a %b %d %T %Z %Y", localtime(&sb->st_atime));
strftime(g_buf, 40, "%a %b %d %Y %T %z", localtime(&sb->st_atime));
dprintf(fd, "\n\n Access: %s", g_buf);

/* Show last modification time */
strftime(g_buf, 40, "%a %b %d %T %Z %Y", localtime(&sb->st_mtime));
strftime(g_buf, 40, "%a %b %d %Y %T %z", localtime(&sb->st_mtime));
dprintf(fd, "\n Modify: %s", g_buf);

/* Show last status change time */
strftime(g_buf, 40, "%a %b %d %T %Z %Y", localtime(&sb->st_ctime));
strftime(g_buf, 40, "%a %b %d %Y %T %z", localtime(&sb->st_ctime));
dprintf(fd, "\n Change: %s", g_buf);

if (S_ISREG(sb->st_mode)) {


불러오는 중...
취소
저장