×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Date format in NC file

Date format in NC file

Date format in NC file

(OP)
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

RE: Date format in NC file

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

RE: Date format in NC file

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources