Re: problems composing a dateandtime value

2006-03-02 Thread Michael P. Soulier
Dave Shield wrote: But when I use this, the snmpwalk ends up looking funny. MITEL-CMNALM-MIB::mitelAlmActiveTblSeverityDetectTime.10.1.3.6.1.4.1.1027.1.7.1 = STRING: 1971-1-16,12:1:30.0,-0:0495058484924000 Lots of trailing junk. What does the code that *uses* the result of this routine loo

Re: problems composing a dateandtime value

2005-11-08 Thread Dave Shield
On Mon, 2005-11-07 at 12:28 -0500, Michael P. Soulier wrote: > I'm trying to compose a DateAndTime string, but when it's decoded by > net-snmp's command-line tools it has trailing junk that I don't understand. > > Here's my function. [snip] This is in the agent - right? > But when I u

problems composing a dateandtime value

2005-11-07 Thread Michael P. Soulier
Greetings, I'm trying to compose a DateAndTime string, but when it's decoded by net-snmp's command-line tools it has trailing junk that I don't understand. Here's my function. The input value is coming from a text-file that's in a human-readable format. int parse_dateandtime(char *input, ch