cool jobs
cool jobs

Reputation: 113

how to set creation date & time with milliseconds to file?

i am trying to set creation date and time to file with milliseconds . but won't works by my way .

setfile -d "01/23/2000 12:00:00.099" file.txt
setfile -m "01/23/2001 12:00:00.499" file.txt

and so on

this way only set from Hours to seconds . not milliseconds how to do this ??

Upvotes: 6

Views: 2631

Answers (1)

KamilCuk
KamilCuk

Reputation: 140960

Just use coreutils touch:

touch --date '01/23/2000 12:00:00.099' file.txt

Upvotes: 5

Related Questions