[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #12866 [Onionoo]: cycle between util and docs packages



#12866: cycle between util and docs packages
-------------------------+-----------------
     Reporter:  iwakeh   |      Owner:
         Type:  defect   |     Status:  new
     Priority:  normal   |  Milestone:
    Component:  Onionoo  |    Version:
   Resolution:           |   Keywords:
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+-----------------

Comment (by karsten):

 Okay, testing the four factory thing locally, will probably merge
 tomorrow, unless something breaks horribly.

 I'll also think more about moving DateTimeHelper to docs.  Maybe we should
 internally work with timestamps in milliseconds and only format/parse
 timestamps to Strings when writing/reading docs.  That would mean, for
 example, that GraphHistory.setFirst() expects a long and uses
 DateTimeHelper to format to set its String attribute.  And in the very few
 other cases where we have to format/parse timestamps we can just use
 SimpleDateFormat directly.  The main reason for this helper class was to
 avoid instantiating tons of SimpleDateFormats.  99% of those would have
 happened in docs classes.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12866#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs