shell 下設定日期 - Linux

Table of Contents

請問一下 shell 底下要怎麼 只設定 '年' 這個欄位呢?

我用 date -s 命令, 但是卻要輸入一大串資料,

但我只想設定其中一個欄位的話 要怎麼作?

或是 如果我用C去寫, 有這樣的 function嗎 謝謝

--

All Comments

Iris avatarIris2008-10-25
date +%Y
Mia avatarMia2008-10-29
原 po 說的是設定.... -s STRING