[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
datevec: permit to specify the number of decimal figures
From: |
CdeMills |
Subject: |
datevec: permit to specify the number of decimal figures |
Date: |
Wed, 28 Mar 2012 09:50:38 -0700 (PDT) |
Hello,
datevec has an undocumented extension: a millisecond entry may be specified
as "FFF". Dealing with number with microsecond resolution, I modified it a
bit:
- the number of 'F' in the string in counted
- the fractionnal part is first extracted as an integer, then multiplied by
10^(6-number of F) and stored in the filed mu_sec. This is OK for millisec,
microsec, nanosec, ...
Patch emitted against tip, can it be reviewed ?
Regards
Pascal
http://octave.1599824.n4.nabble.com/file/n4512896/datevec.patch
datevec.patch
--
View this message in context:
http://octave.1599824.n4.nabble.com/datevec-permit-to-specify-the-number-of-decimal-figures-tp4512896p4512896.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- datevec: permit to specify the number of decimal figures,
CdeMills <=