set_ftime {filenamer} | R Documentation |
This function sets the time stamp in a file name.
set_ftime(x, time)
x |
a |
time |
new time stamp ( |
modified object of the original type
x <- "data_norm_20110103T093015.txt"
# change the time to 30 seconds past 2:45 p.m.
print(set_ftime(x, "144530"))
# to change the date, time must be specified as well
print(set_ftime(x, "20110505T101500"))