Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Cisco (http://www.velocityreviews.com/forums/f27-cisco.html)
-   -   Extracting time in IOS (http://www.velocityreviews.com/forums/t679806-extracting-time-in-ios.html)

syuga2012@gmail.com 04-14-2009 05:57 AM

Extracting time in IOS
 
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

bod43 04-14-2009 09:12 AM

Re: Extracting time in IOS
 
On 14 Apr, 06:57, "syuga2...@gmail.com" <syuga2...@gmail.com> wrote:
> 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.


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.



All times are GMT. The time now is 05:11 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57