Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5321

Re: Compare date+hour

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Compare date+hour
Date Tue, 4 Jun 2013 17:57:41 +0200
Lines 20
Message-ID <b16h3kF6ma5U1@mid.individual.net> (permalink)
References <398c6d2a-40da-41ed-907a-fcf31b8203e5@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
X-Trace individual.net C/O5rN2Vbvz+O8LrP0QdlADSpH4EkZmvP5GccRGIfHgwQkero=
Cancel-Lock sha1:HO225oLaHff0ja1+nbGw+v79VQY=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:5321

Show key headers only | View raw


Hi Paulo,

> I have a date1 as date, cHour1 as string,date2 as date, cHour2 as
> string
> 
> I want compare date1+hour1=date2+hour2

use a numeric value as hours with fractions:

nHours1 := ( Date1 - ConDate( 1900, 1, 1 ) * 24 ) + ( Secs( Hour1 ) /
3600 )

nHours2 := ( Date2 - ConDate( 1900, 1, 1 ) * 24 ) + ( Secs( Hour2 ) /
3600 )

Wolfgang


-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Compare date+hour Paulo Oliveira <paulo@clipinfor.com> - 2013-06-04 07:29 -0700
  Re: Compare date+hour Pilks <richardp@lukhozi.co.za> - 2013-06-04 07:52 -0700
  Re: Compare date+hour "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-06-04 17:57 +0200
  Re: Compare date+hour "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-06-04 18:05 +0200

csiph-web