I am using a time axis for some histograms and I can’t figure out how to have it start at 00:00 of a particular day.
For example when I use the UNIX time stamp 1262062801 (which is midnight in New York) as the offset I am at best short by one hour – instead of starting at 00:00 it starts at 23:00.
Can someone please show me the correct way of using the above time stamp and having the histogram axis start at midnight.
Thanks and Happy New Year!
Bertrand time_axis.cpp (1.29 KB)
With the actual code I read in a data file of time stamped values. As I look at the file during the day I don’t know the end time stamp yet – at the end of the day a new file is created so then I have a 24 hours time window.
Now if I don’t set X2 as a time stamp why does the histogram begin one hour offset?
Instead of needing to subtract 5 hours
Why don’t you proceed like in the example I sent you as it does what you are looking for. You need to specify the axis limits X1 and X2 when you create an histogram and, it you request a time axis, they are both considered as time values.