Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Calculated Time Field: msg#00021

db.rekall.general

Subject: Re: Calculated Time Field

Mehmet:

I posted an example of how to script time differences here:
http://rekall.no-no-badpuppy.com/modules/newbb/viewtopic.php?topic_id=8&forum=2&post_id=22#forumpost22

I used python's timedelta function after parsing the time values. There doesn't
seem to be a really easy way to do this, and like Mike says, it's
database-dependent.

KD

----- Original Message -----
From: Mike Richardson <mike-1gTsUfBLqWsG2Il/BtU0GPXRex20P6io@xxxxxxxxxxxxxxxx>
Date: Monday, June 20, 2005 5:28 am
Subject: Re: [Rekall] Calculated Time Field

> On Saturday 18 June 2005 13:06, Mehmet Seckiner wrote:
> > Hi!
> >
> > I'm using it and I am happy to find it.
> >
> > I have two time fields come from the same table. I want to show
> to the
> > operator the difference between these time values. (How much
> time is passed
> > between the two) SQL supports this kind of an expression: TimeA -
> TimeB
> > But I enter the expression above to the FIELD' s DISPLAY
> EXPRESSION area it
> > shows me a big number like 120000 when the time expressions are
> 22:00 and
> > 10:00. I set the format to "Time: %H:%M" but now the output is:
> Time?120000
> You'll need to do this at the database level. The result of an
> expression
> like (TimeA - TimeB) will be dependant on the database. I'm
> guessing that in
> your case the result is a number, seconds maybe?
>
> >
> > On the other hand if we assume I solved this problem it will not
> be a
> > complete solution. Because the operator have to see the time
> between the
> > two entered values before he posts the data to the database.
> >
> > It is seem like a scripting or macro problem.
> >
> > If so, can you describe me how to solve this and lead me into
> some basic
> > scripting?
>
> --
> Regards
> Mike
>
> http://www.rekallrevealed.org
> *THE* GPL/Open Source database front end for Linux and Windows.
>
> _______________________________________________
> Rekall mailing list
> Rekall-TvUNdCdnGOiN0BpGcQGnph2eb7JE58TQ@xxxxxxxxxxxxxxxx
> http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation