Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date format in NC file

Status
Not open for further replies.

Cam5axis

Aerospace
Joined
Dec 27, 2006
Messages
14
Location
US
Hi

I want the date to reflect in the NC file,if i insert the MOM variable mom_date, it gives day,date,time and year.if i need only format as below,how do i do that.how to extract only date format?

(ACM284 01-01-2207 John)

Thanks In advance
 
Use an extract on the mom_date line.
TCL should have a method of extracting a portion of a returned string.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
Sr IS Technologist
L-3 Communications
 
Our postprocessor custom command looks like this:
set datetime [clock format [clock seconds] -format "%H:%M KUUPAEV %d-%m-%Y"]
MOM_output_literal "* - KELL [ string toupper $datetime ]"

Output is this:
4 * - KELL 22:00 KUUPAEV 01-01-2007

Henry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top