Results 1 to 9 of 9

Thread: Extending QDate, QTime and QDateTime

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Extending QDate, QTime and QDateTime

    Dear all,

    I have been trying to modify the qdatetime* files to the following ends:

    1. Push the earliest date back to -4000 Jan 01 from a meaningless 1752 date
    2. Allow the client programmer to read the internal representation in milliseconds of QTime
    3. Rename QTime::mds and ds() to something more sensible.
    4. Add a function to return a QTime value as a fraction of a day.
    5. Add a function to return an astronomically valid Julian Day Number from a QDateTime value.


    But somehow I am not able to get the stuff to compile correctly. There are too many errors to fit on screen. I have based my modifications on the Qt 4.11 qdatetime* code. Please help me with accomplishing my target successfully.

    P.S: Another important matter -- when I modify a GPLed program, the resultant program is copyright me or the original author?
    Attached Files Attached Files
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.