Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

RE: "AT TIME ZONE"

Posted By: Konikoff, Robert W MAJ RET
Date: Tuesday, 15 December 2009, at 12:50 p.m.

In Response To: Re: "AT TIME ZONE" (Art Kagel)

Art:

I enjoy the ranting! (http://baarf.com/, and
http://www.miracleas.com/BAARF/RAID5_versus_RAID10.txt)!

As to youth vs. feeding a family, I know all about billable hours and 6 minute increments
on the time sheet. :)

Thanks for the education. On the surface, you don't realize the intricacies of such a
simple thing as time. We just upgraded to 7.31 last year since all our date math was
handled in custom programming to handle Julian date math rather than 'real' date math.

Rob

-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of Art Kagel
Sent: Tuesday, December 15, 2009 11:15 AM
To: ids@iiug.org
Subject: Re: "AT TIME ZONE" [18394]

Rob,

This issue is not as simple as it sounds on the surface. I've been dealing
with time, time arithmetic, and timezone issues for over 20 years. It has
become one of my favorite topics if for no other reasons than that 1- it
keeps popping up and 2 - it is an endlessly debatable topic. It's a
Pandora's box. Every time you think that you have resolved all of the
issues, another one pops up.

I've put some work into building a set of User Defined Types which will
handle timezones correctly, but it's not complete. There are two basic
types, one, DISTINCT OF DATETIME includes built-in conversions from DATE,
DATETIME and the other type which convert everything entered into UTC for
storage in a normal DATETIME. As a distinct type, if it is fetched into a
raw DATETIME it converts into local time based on the server's TZ or the
user's TZ both of which are available within the server. The other is an
opaque type that stores the datetime data as entered plus the timezone
represented. The default for conversion from DATETIME is to assume the
server's TZ and store that. Conversion to text would return either ANSI
8601 format or W3C format (which are close), but which should be the
default? Conversions from text will allow full and partial ANSI 8601 and
W3C format filling in missing portions from current time or date. The
second type may not even have to be a storable type but only a returnable
type while only storing the UTC datetime. I haven't decided finally on that
issue.

I think that this is the correct way to handle things and if the conversion
routines are written in 'C' the efficiency is not a problem.

I already have a string to datetime conversion function I wrote long ago
that understands timezones using the GNU timezone database and function
library. It can handle just about anything you can throw at it including
relative datetimes (like 'three days ago'), but it has to be made
multi-thread safe, I have to modify the output format to output a DATETIME,
and then there are the conversion decisions that have to be made. I haven't
had much time I can dedicate to completing the work as billable work and the
need to pursue billable work keep intruding. Ahh for the ideal world or the
blush of youth where I didn't need to worry about such mundane things as
feeding a family.

I had a client who had major problems caused by the way IDS handles
datetimes. They said they were interested in funding the work, but they
backed out preferring to use built-in DATETIME and have continued to muddle
through. I think they hoped I'd finish it for free and publish. I'd like
to do that, but as I said, the real world encroaches. There's not much
coding that has to be done. The entire project is perhaps a month of
dedicated time to work out all of the kinks - time calculations have many
non-obvious side effects that I have to take into consideration. For
example is the default to return user TZ or server TZ? Another, what should
the function return for time arithmetic when a user adds 1 day to the day
before DST starts in the target timezone? If the UTC equivalent of 4PM
local was stored do you return 4PM or 5PM? There are those who would argue
for either option. And if it's to be configurable, should it be a site
setting or dynamic - able to be different for different queries. If
dynamic, how does one make that selection work in an SQL statement? Do I
need to create a host language library (or libraries) to deal with all of
this as well? Another, what does "datetime + 1 year" mean the year before a
leap year? There are applications which would require the same date a year
later and others which require exactly 365 days later. And if the current
year is a leap year, does "next year" mean 365 days later or 366 days
later?

Anyway, thanks all for putting up with my rantings on one of my favorite
topics.

Art

Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)

See you at the 2010 IIUG Informix Conference
April 25-28, 2010
Overland Park (Kansas City), KS
www.iiug.org/conf

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.

On Tue, Dec 15, 2009 at 10:06 AM, Konikoff, Robert W MAJ RET <
rob.konikoff@us.army.mil> wrote:

> Art:
> You Wrote: > Whatever time you store the server ASSUMES that it is in local
> time.
>
> Couldn't you write an SPL with two arguments, (TimeToConvert,
> Desired_TimeZone), and do a
> simple time offset? It doesn't seem that complicated to implement. An
> analysis
> of the
> data should yield which is the most common time zones and you can build a
> select
> statement with those zones first...
>
> If there is a more efficient way, I'd like to know. We have to do this kind
> of
> stuff
> fairly frequently for custom data codes.
> Rob
>
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of Art
> Kagel
> Sent: Monday, December 14, 2009 8:25 AM
> To: ids@iiug.org
> Subject: Re: "AT TIME ZONE" [18371]
>
> No! Whatever time you store the server ASSUMES that it is in local time.
> It does not conversions from TZ at all.
>
> Art
>
> Art S. Kagel
> Oninit (www.oninit.com)
> IIUG Board of Directors (art@iiug.org)
>
> See you at the 2010 IIUG Informix Conference
> April 25-28, 2010
> Overland Park (Kansas City), KS
> www.iiug.org/conf
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions
> and
> do not reflect on my employer, Oninit, the IIUG, nor any other organization
> with which I am associated either explicitly or implicitly. Neither do
> those opinions reflect those of other individuals affiliated with any
> entity
> with which I am affiliated nor those of the entities themselves.
>
> On Mon, Dec 14, 2009 at 8:32 AM, Clifton Bean <clifton_bean@hotmail.com
> >wrote:
>
> > So is it worth having the engine store all datetimes as timezone GMT+0
> and
> > when the datetime is needed from a transaction it displays the datetime
> in
> > local server time, unless overriden by an environment variable?
> >
> > Take care.
> >
> > Clifton
> >
> > > To: ids@iiug.org
> > > From: jleffler.iiug@gmail.com
> > > Subject: Re: RE: "AT TIME ZONE" [18369]
> > > Date: Mon, 14 Dec 2009 02:42:03 -0500
> > >
> > > On Tue, Dec 8, 2009 at 10:02, DAVE GRIFFEN <dgriffen@finishline.com>
> > wrote:
> > >
> > > > No need to load current time zone into a table. It is readily
> > available...
> > > >
> > > > select dbinfo('get_tz')
> > > > from systables
> > > > where tabid = 1
> > > >
> > >
> > > Although this returns the time zone of the client, that value is
> ignored
> > in
> > > the server. All server time computations are performed in the time zone
> > of
> > > the server.
> > >
> > > --
> > > Jonathan Leffler #include <disclaimer.h>
> > > Email: jleffler@earthlink.net, jleffler@us.ibm.com
> > > Guardian of DBD::Informix v2008.0513 -- http://dbi.perl.org/
> > > "Blessed are we who can laugh at ourselves, for we shall never cease to
> > be
> > > amused."
> > > NB: Please do not use this email for correspondence.
> > > I don't necessarily read it every week, even.
> > > Jonathan
> > > Swift<http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html>
> > > - "May you live every day of your life."
> > >
> > > --000e0cd11310871b8b047aab689c
> > >
> > >
> > >
> >
> >
>
>
>
*******************************************************************************
> > > Forum Note: Use "Reply" to post a response in the discussion forum.
> > >
> >
> > _________________________________________________________________
> > Hotmail: Trusted email with Microsoft's powerful SPAM protection.
> > http://clk.atdmt.com/GBL/go/177141664/direct/01/
> >
> >
> >
> >
>
>
>
*******************************************************************************
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
>
> --000e0ce0f92886d20c047ab10ab5
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>

--000e0cd1ff3eeb5e3f047ac786ac

*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.