🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2656

Re: TDateTime

#2656
From: Remy Lebeau (TeamB)
Date: Wed, 24 Jan 2007 18:09
16 lines
1206 bytes
"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote in
message news:45b6c4c7@newsgroups.borland.com...

> Is there an easy way to add time to a TDateTime object? I'd like
> to add an hour or a minute, etc.

If you are using BCB 6 or higher, then the VCL has functions for that:

    IncHour()
    IncMinute()

Look in the DateUtils unit for other Date/Time related functions


Gambit
Technical Details
Message-ID: <45b7a0ad$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45b6c4c7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,605f02ebdda824c7
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45b6c4c7@newsgroups.borland.com>
Subject: Re: TDateTime
Date: Wed, 24 Jan 2007 10:09:07 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45b7a0ad$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169662125 75.83.34.171 (24 Jan 2007 10:08:45 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail