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


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

Re: Compare date+hour

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Compare date+hour
Date 2013-06-04 17:57 +0200
Message-ID <b16h3kF6ma5U1@mid.individual.net> (permalink)
References <398c6d2a-40da-41ed-907a-fcf31b8203e5@googlegroups.com>

Show all headers | 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