Unit Olf.RTL.DateAndTime
Description
C2PP ***************************************************************************
My libraries for Delphi Copyright (c) 1990-2026 Patrick PREMARTIN
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
***************************************************************************
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 : 2026-03-30T16:35:19.662+02:00 Signature : 9546057ee2276894490b9a6ab1927e89652a209b ***************************************************************************
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; |
|
This item has no description. |
function SecToHMS(Const Valeur_En_secondes: Int64): String; overload; |
|
This item has no description. |
procedure SecToHMS(Const Valeur_En_secondes: Int64; var HH, MM, SS: Int64); overload; |
|
This item has no description. |
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; |
|
This item has no description. |
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; |
|
This item has no description. |
function HMSToSec(Const HH, MM, SS: Int64): Int64; overload; |
|
This item has no description. |
Generated by PasDoc 1.0.2.