![]() |
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 |
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.