> what documentation have you been looking at, my friend. what millis?
>
[quoted text clipped - 4 lines]
> format. yyyy-mm-dd hh:mm:ss.fffffffff, where ffffffffff indicates
> nanoseconds.
On May 7, 1:04 am, "Richard Reynolds" <richiereyno...@ntlworld.com>
wrote:
> The constructor takes a single long that says it specifies the time in
> millis and when I only use that I get a telltale 3 places after the seconds
> (if it's not 0):
> Timestamp.toString(): 1970-01-01 01:00:01.0
> Timestamp.toString(): 1970-01-01 01:00:01.001
As you should.
> However if I do a setNanos(0) and setNanos(1) on it then I get a telltale 9
> places:
> Timestamp.toString(): 1970-01-01 01:00:01.0
> Timestamp.toString(): 1970-01-01 01:00:01.000000001
Again, as you should.
> so I'm guessing that if you don't explicitly set the nanos it acts as if
> it's got millis only, and it certainly does the formatting differently
> depending on if it's 0 or not in either case.
The precise description would be ss.fffffffff indicate the seconds.
I guess, it is implicitly understood in the documentation that the
format fffffffff
behaves as fractional one (implying a standard behaviour for
fractional digits).
Regards,
Faton Berisha