Menu

Date, Time and Datetime question

Help
2004-11-24
2012-11-20
  • Heiko Weber

    Heiko Weber - 2004-11-24

    Hi, just a small question:

    in the Date clas I can get the long value with operator() long. Is there a way to create a new Date instance from this "long" value ?
    Example:
    Date dt("2004-11-12");
    long tmp = dt;

    Date dt2 = tmp; // <--- will not work

    The same question for class Time ...

    Heiko

     
    • David Sugar

      David Sugar - 2004-12-22

      You are looking for an assignment operator for long?  I think the 1.3 releases include this...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.