Documentation of straddtime


Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)


Function Synopsis

FileNamewithTime = straddtime(FileNameBase)

Help text

 Add a date and time string to a string base

 This function extends a given string with the current date and time.
 The main use is in the generation of a different filename for data 
 file each time the function is called (when the minute changed).
 The given file name base can be used for specifying the topic of
 the data.

 Syntax:  FileNamewithTime = straddtime(FileNameBase)

 Input parameter:
    FileNameBase- String containing the base of the new filename

 Output parameter:
    FileNamewithTime - extended string

 Examples:

  % Extend the string/filename 'OptResult' with the current date and time
  % the result means: created at 5th of April 2000, 20:09
  >> NewName = straddtime('OptResult');
     NewName = 'OptResult_2000_Apr_05_20-09'

 See also: straddname

Cross-Reference Information

This function is called by

GEATbx: Main page  Tutorial  Algorithms  M-functions  Parameter/Options  Example functions 

This document is part of version 3.3 of the GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab - www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is not public domain.
© 1994-2000 Hartmut Pohlheim, All Rights Reserved, (support@geatbx.com).