Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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
Dec 27, 2006
14
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
 
Replies continue below

Recommended for you

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