Learn R Programming

vanddraabe (version 1.1.1)

ExtractFileTimeStamp: Extract Filename Time Stamp

Description

Extract date & time stamp from a file

Usage

ExtractFileTimeStamp(filename)

Arguments

filename

String of the file name to extract the FileTimeStamp information

Value

A string with the date and time.

Details

Create a date-time string to append to filenames to try and make them unique. The date-time string has the format month-day-year_hour-minute; for example, May 4, 2016 at 12:34pm is represented as may042016_1234.

NOTE: This is a non-public function.

See Also

Other utilities: ConservationSet, DetermineChainsOfInterest, ExtractPDBids, FileTimeStamp, HasXWaters, Nearby, ProtHetWatIndices, RescaleValues, RetainChainsOfInterest, ReturnPDBfullPath, StandardizeAsparticAcidNames, StandardizeCysteineNames, StandardizeGlutamicAcidNames, StandardizeHistidineNames, StandardizeLysineNames, TimeSpan, UniqueAtomHashes, aaStandardizeNames, getAtomTypeCounts, getResTypeCounts, res2xyz, resAtomType2AtomClass, write.basic.pdb, write.conservedWaters.pdb

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  filename <- "ConservedWaters_PASSED_may042016_1234.pdb"
  ExtractFileTimeStamp(filename)
  # [1] may042016_1234
  
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab