Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Classes  ·  Annotées  ·  Hiérarchie  ·  Fonctions  ·  Structure  · 

Year 2000 Compliance Statement


Trolltech defines Year 2000 Compliance as a requirement that a product or part of product does not contain errors related to transition from December 31, 1999 to January 1, 2000, or to the existence of February 29, 2000.

This document certifies that the API provided by Qt and the implementation of Qt are both Year 2000 Compliant, and that the use of underlying APIs by Qt does not have any known problems.

The API Provided by Qt

Several parts of Qt deal with dates and times:

  • QDate - provides date management
  • QDateTime - provides date/time management
  • QTime - provides time management (within a date)
  • QTimer - provides delayed or regular execution of code.

All of these classes' external APIs are Year 2000 Compliant: QDate and QDateTime offer only four-digit years as output, QTime and QTimer do not deal with years or leap days at all.

Implementation Issues in Qt

All date/time calculation and storage in Qt uses number of days, seconds or milliseconds, and is thus Year 2000 Compliant.

This applies to the above four classes and also to QFileDialog (which can sort files by time/date), QFileInfo (which operates on file times/dates) and QApplication (which does various internal housekeeping tasks).

The conversion to year/month/date format in QDate (and QDateTime) has been verified to be correct for all of December 31, 1999, January 1, 2000, February 28 and 29, 2000, March 1, 2000, January 1, 2001 and March 1, 2001.

Qt has been verified to be robust in case of time/date errors (such as time warps) in the underlying operating system.

Use of System APIs

It is of course impossible for Trolltech to ensure that both of the window systems and all of the operating systems on which Qt runs are Year 2000 Compliant. However, Qt does not use any APIs that are known to have any Year 2000-related bugs, or seem at risk to have any.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année

Le Qt Developer Network au hasard

Logo

Utiliser QML et QtWebKit avec PySide

Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 2.3
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web