HkFreaKuser1673718
HkFreaKuser1673718

Reputation: 747

RegularTimePeriod creation or convertion in java

I want to create a RegularTimePeriod object with hour,min,seconds i have,how to do this i googled and got http://www.jfree.org/jfreechart/api/javadoc/org/jfree/data/time/RegularTimePeriod.html but i dont seem to understand what RegularTimePeriod contain create one.

in short lets say i have 02:33:54 i have broken it into h=02,m=33,s=54 now can i create a regulartimeperiod object with h,m,s?if so how

if not which object can pass to TimeSeries in jfreechart to get hh:mm:ss format along x-axis

Thanks in advance

Upvotes: 1

Views: 1476

Answers (1)

trashgod
trashgod

Reputation: 205785

You can override the date format. Related examples may be found here and here.

axis.setDateFormatOverride(DateFormat.getTimeInstance());

Upvotes: 1

Related Questions