Drew,
Use the to string function to get the date/ time into a string format.
The write statement in the to string box should be similar to :
WRITE TEXT now()DATE:DMY TIME:HMS:H24 EOL
Note that I used the now() function directly in the to string block
Steve
At 12:34 PM 5/8/98 -0400, you wrote:
>Maybe this has been addressed before. Is there
>any easy way to generate PC filenames based on
>on the current date and time? What I would like
>is to have a base filename filter that then has
>the date and time of the test appended to it.
>
>An example filename I would like is:
>
>Testd_05_08_98_14_20_05
>
>ie;
>filter="Testd" (set by the user)
>Testd_month_day_year_HH_MM_SS
>
>The month, day, and year are easy, but there
>doesn't seem an easy way to get the current
>time in the string format needed for a filename.
>
>Any suggestions?
>
>
>Drew Amery
>
>damer@mail.mse.ufl.edu
>University of Florida
>Department of Materials Science
>Gainesville, FL 32601
>
>
>
stimian@ara.com
Applied Research Associates (802) 763 - 8349 phone
New England Division (802) 763 - 8283 fax
RR1 Box 120A
South Royalton, VT 05068
Use the to string function to get the date/ time into a string format.
The write statement in the to string box should be similar to :
WRITE TEXT now()DATE:DMY TIME:HMS:H24 EOL
Note that I used the now() function directly in the to string block
Steve
At 12:34 PM 5/8/98 -0400, you wrote:
>Maybe this has been addressed before. Is there
>any easy way to generate PC filenames based on
>on the current date and time? What I would like
>is to have a base filename filter that then has
>the date and time of the test appended to it.
>
>An example filename I would like is:
>
>Testd_05_08_98_14_20_05
>
>ie;
>filter="Testd" (set by the user)
>Testd_month_day_year_HH_MM_SS
>
>The month, day, and year are easy, but there
>doesn't seem an easy way to get the current
>time in the string format needed for a filename.
>
>Any suggestions?
>
>
>Drew Amery
>
>damer@mail.mse.ufl.edu
>University of Florida
>Department of Materials Science
>Gainesville, FL 32601
>
>
>
stimian@ara.com
Applied Research Associates (802) 763 - 8349 phone
New England Division (802) 763 - 8283 fax
RR1 Box 120A
South Royalton, VT 05068