Error in datestr.m in Octave-3.2.0 MingW

John W. Eaton jwe at octave.org
Tue Jun 23 17:14:32 CDT 2009


On 23-Jun-2009, Philip Nienhuis wrote:

| Digging a bit further, and echoeing strftime's arguments, i.e. variable:
| - df
| and expression:
| - localtime(mktime(tm))
| in the erroneous datestr.m, I see:

Then maybe the bug is in mktime or localtime?  What are the values of
tm and mktime (tm) here?  I expect

  tm =
  {
    year =  69
    mon = 0
    mday =  1
    hour = 0
    min = 0
    sec = 0
    usec = 0
  }

and

  ans = -31518000

If these are not the values returned, then what does

  localtime (-31518000)

return on your Windows system?

jwe


More information about the Bug-octave mailing list