Extracting time in IOS

Apr 14, 2009 1 Replies

Hi Folks,



I have to fill an array of chars with the time value.



The values required are milliseconds, seconds, minutes, hours, day of week, month of year and year value.


04:33:31.860 Apr 14 09 should be converted into hex for each field and put as a sequence of bytes.

Appreciate if someone could help me with how this can be done on IOS.



Thanks, syuga


I presume you mean in TCL in IOS. I would ask somewhere where they do TCL if no better response than mine here.

Sounds like homework, or maybe you got the job at cisco that I didn't get:-(

Was fun seeing Game of Life running in an IOS console in dynamips.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required