Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By Tolls

Thread: How to organize/design a date and time array?

  1. #1
    RORE is offline Member
    Join Date
    Jul 2011
    Location
    Norway
    Posts
    2
    Rep Power
    0

    Default How to organize/design a date and time array?

    Hi, been a time since I have programmed java and I am stuck with some basics.

    I basically what to make a graph with a "double value" for each minute of the day at any given day/month/year.
    Each minute value needs a default value.

    Have to start by setting a start date and minute.
    but then I some way need to add for upcomming minues for the future ahead.
    and how to find a minute value after "one year" whitout going through the hole list.

    some tips on how to organize/design this the best way? Arraylist, List, Collection, Set, Vector?

  2. #2
    dlorde is offline Senior Member
    Join Date
    Jun 2008
    Posts
    339
    Rep Power
    7

    Default

    I can't make sense of what you're trying to do - maybe if you posted an example, or explained what it was for?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    how to organize/design this the best way? Arraylist, List, Collection, Set, Vector?
    None of the above. Map<Date, Double>

    db

  4. #4
    RORE is offline Member
    Join Date
    Jul 2011
    Location
    Norway
    Posts
    2
    Rep Power
    0

    Default

    Will look in to the Map interface.
    Will try to explain more if the Map do not help me.
    Thanks, so far.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

    Default

    Maybe you can google for "jrobin"; it's a pure Java implementation of the RRDTool and is very well capable of handling huge amounts of data related to time series. I can also draw nice graphs for you.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default

    Quote Originally Posted by JosAH View Post
    I can also draw nice graphs for you.

    kind regards,

    Jos
    You planning a trip to Norway then for that?
    DarrylBurke likes this.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    Tolls beat me to it

    db

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Tolls View Post
    You planning a trip to Norway then for that?
    Grmbl, I should keep my mouth shut before I had my espresso; I can hardly type; It! it! it!!!

    kind regards,

    Jos (aka the it's man ;-)
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 18
    Last Post: 05-11-2011, 07:36 AM
  2. Date vs Time
    By mikerada6 in forum New To Java
    Replies: 1
    Last Post: 10-29-2010, 12:34 AM
  3. converting string (GMT date) to date in US time.
    By JRuyechan in forum New To Java
    Replies: 1
    Last Post: 10-15-2010, 07:07 AM
  4. Time and Date
    By Manfizy in forum New To Java
    Replies: 0
    Last Post: 05-27-2009, 12:58 PM
  5. Time-Date problem
    By teo.danciu in forum New To Java
    Replies: 5
    Last Post: 08-27-2008, 10:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •