# 系統程式設計 - `utime()` and `utimes()` [TOC] ## 課程影片 ### W7-2: Access permission (00:00 ~ 11:58) {%youtube kNU5YR0xcxE %} ## 三種時間 使用 `stat`: ``` File: AAAAA Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: b302h/45826d Inode: 643011 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ ubuntu) Gid: ( 1000/ ubuntu) Access: 2021-10-20 06:54:14.897970317 +0000 Modify: 2021-10-20 06:54:14.897970317 +0000 Change: 2021-10-20 06:54:14.897970317 +0000 Birth: - ``` ## `utime` 如果去查 `utime()` 的 [`man`](https://man7.org/linux/man-pages/man2/utime.2.html),他會出現以下的註記: > Note: modern applications may prefer to use the interfaces described in [`utimensat(2)`](https://man7.org/linux/man-pages/man2/utimensat.2.html).