Unit Olf.RTL.DateAndTime
Description
***************************************************************************
Librairies pour Delphi
Copyright 1990-2025 Patrick Prémartin under AGPL 3.0 license.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************
This repository contains functions, procedures and classes to use in Delphi projects (console, VCL, FireMonkey and others). It's my "everything reuseable things" toolbox.
The units to be used in your projects can be found in the "src" folder. Some features are explained on my blog or have been coded live on Twitch.
Examples of use in the form of VCL or FireMonkey projects are available in the "samples" subfolder.
***************************************************************************
Author(s) : Patrick PREMARTIN
Site : https://librairies.developpeur-pascal.fr
Project site : https://github.com/DeveloppeurPascal/librairies
*************************************************************************** File last update : 2025-01-13T18:10:42.000+01:00 Signature : 3170f577bffd83a31cee415c3cfc1fb47b9e432a ***************************************************************************
Overview
Functions and Procedures
function DateToString8: string; overload; |
function DateToString8(Const ADate: TDateTime): string; overload; |
function Date8ToDate(Const Date8: string): tdate; |
function Date8ToString(Const Date8AAfficher: string): string; |
function Date8ToStringISO(Const Date8AAfficher: string): string; |
function Date8ToStringRFC822(Const Date8AAfficher: string): string; |
function TimeToString6: string; overload; |
function TimeToString6(Const ATime: TDateTime): string; overload; |
function Time6ToString(Const Time6AAfficher: string): string; |
function DateTimeToString14: string; overload; |
function DateTimeToString14(Const ADateTime: TDateTime): string; overload; |
function SecToHMS(Const Valeur_En_secondes: Integer): String; overload; |
procedure SecToHMS(Const Valeur_En_secondes: Integer; var HH, MM, SS: Integer); overload; |
function SecToHMS(Const Valeur_En_secondes: Int64): String; overload; |
procedure SecToHMS(Const Valeur_En_secondes: Int64; var HH, MM, SS: Int64); overload; |
function SecToTime(Const Valeur_En_secondes: Integer): String; overload; |
function SecToTime(Const Valeur_En_secondes: Int64): String; overload; |
function HMSToSec(Const HH, MM, SS: Integer): Integer; overload; |
function HMSToSec(Const Valeur_En_HMS: String): Int64; overload; |
function HMSToSec(Const HH, MM, SS: Int64): Int64; overload; |
Description
Functions and Procedures
function DateToString8: string; overload; |
Ressort la date du jour en AAAAMMJJ |
function DateToString8(Const ADate: TDateTime): string; overload; |
Ressort la date passée en AAAAMMJJ |
function Date8ToDate(Const Date8: string): tdate; |
Get the TDate value of a YYYYMMDD string |
function Date8ToString(Const Date8AAfficher: string): string; |
Transforme une date AAAAMMJJ dans son format d'affichage JJ/MM/AAAA |
function Date8ToStringISO(Const Date8AAfficher: string): string; |
Transforme une date AAAAMMJJ dans son format d'affichage AAAA-MM-JJ |
function Date8ToStringRFC822(Const Date8AAfficher: string): string; |
Transforme une date AAAAMMJJ dans son format d'affichage RFC822 |
function TimeToString6: string; overload; |
Ressort l'heure en cours en HHMMSS |
function TimeToString6(Const ATime: TDateTime): string; overload; |
Ressort l'heure passée en HHMMSS |
function Time6ToString(Const Time6AAfficher: string): string; |
Transforme une heure HHMMSS dans son format d'affichage HH:MM:SS |
function DateTimeToString14: string; overload; |
Transforme la date et heure du moment en AAAAMMJJHHMMSS Ce format est utilisé dans le stockage d'infos de création et de modification dans la base de données et permettre des tris chronologiques sur l'ordre alphabétique. |
function DateTimeToString14(Const ADateTime: TDateTime): string; overload; |
Transforme la date et heure passée en AAAAMMJJHHMMSS Ce format est utilisé dans le stockage d'infos de création et de modification dans la base de données et permettre des tris chronologiques sur l'ordre alphabétique. |
function SecToHMS(Const Valeur_En_secondes: Integer): String; overload; |
Converti une valeur en secondes vers son équivalent en HMS |
procedure SecToHMS(Const Valeur_En_secondes: Integer; var HH, MM, SS: Integer); overload; |
function SecToHMS(Const Valeur_En_secondes: Int64): String; overload; |
procedure SecToHMS(Const Valeur_En_secondes: Int64; var HH, MM, SS: Int64); overload; |
function SecToTime(Const Valeur_En_secondes: Integer): String; overload; |
Converti une valeur en secondes vers son équivalent en "HH:MM:SS" |
function SecToTime(Const Valeur_En_secondes: Int64): String; overload; |
function HMSToSec(Const HH, MM, SS: Integer): Integer; overload; |
Converti une valeur HMS (xxH xxM xxS) en son équivalent en secondes |
function HMSToSec(Const Valeur_En_HMS: String): Int64; overload; |
function HMSToSec(Const HH, MM, SS: Int64): Int64; overload; |
Generated by PasDoc 0.16.0.