[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: w3m-touch-file
>>>>> In [emacs-w3m : No.02705] 
>>>>>	Katsumi Yamaoka <yamaoka@jpl.org> wrote:
有沢> GNU fileutils の touch にも "-t" はあるから Linux は大丈夫だ
有沢> と思いますが、それ以外の OS は大丈夫でしょうか?
山岡さん> % touch --version
山岡さん>  => touch (GNU fileutils) 3.16
山岡さん> % touch -t 200202051017.59 X
山岡さん>  => touch: invalid date format `200202051017.59'
% touch --verison
touch (GNU fileutils) 3.16
% touch --help
[...]
  -t STAMP               use MMDDhhmm[[CC]YY][.ss] instead of current time
[...]
と時刻の指定方法が異なるのですね。
touch MMDDhhmmYY file だと、Solaris touch, GNU touch 4.X, 3.16 で
問題無さそうですが、second が指定できないし…。
>>>>> In [emacs-w3m : No.02706] 
>>>>>	Hideyuki SHIRAI (白井秀行) <shirai@rdmg.mgcs.mei.co.jp> wrote:
白井> ご参考までに、Windows の世界ではこんな touch もあります。
白井> % c:/app/bcc/bin/touch.exe -h
白井> Touch  Version 4.2  Copyright (c) 1998 Borland International
白井> Usage: TOUCH [options] [filename(s)...]     (wild cards * and ? ok)
[...]
白井>   -thh:mm[:ss] set the file time
白井>   -dmm/dd/yy   set the file date
ひぃー。
でも、これも touch MMDDhhmmYY file だと大丈夫みたいです。
デフォルトは "MMDDhhmmYY" にしておいて、オプションで
"-t CCYYMMDDhhmm.SS" や "-d CCYY-MM-DD HH:MM:SS" に
変更できるのが良いですかね。
-- 
有沢 明宏