473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Timestamps in a Windows Environment

I am working with DB2 LUW after being away for a few years. Most of my
experinece is in the z/Os environment.

I am noticing the millisecond-only timestamps and trying to remember
if there is a way to get DB2 to insert the actual microseconds in
timestamps.

Thanks

- Roland
Jan 27 '08 #1
2 1727
"rdpratti" <ro*************@cox.netwrote in message
news:3f**********************************@f10g2000 hsf.googlegroups.com...
>I am working with DB2 LUW after being away for a few years. Most of my
experinece is in the z/Os environment.

I am noticing the millisecond-only timestamps and trying to remember
if there is a way to get DB2 to insert the actual microseconds in
timestamps.

Thanks

- Roland
You can get microseconds in Linux or UNIX, but not Windows.

But in DB2 you can use TIMESTAMP(GENERATE_UNIQUE()) to give a guaranteed
unique timestamp,even when inserting multiple rows within a single SQL
statement.
Jan 27 '08 #2
Mark A wrote:
"rdpratti" <ro*************@cox.netwrote in message
news:3f**********************************@f10g2000 hsf.googlegroups.com...
>I am working with DB2 LUW after being away for a few years. Most of my
experinece is in the z/Os environment.

I am noticing the millisecond-only timestamps and trying to remember
if there is a way to get DB2 to insert the actual microseconds in
timestamps.
You can get microseconds in Linux or UNIX, but not Windows.
But in DB2 you can use TIMESTAMP(GENERATE_UNIQUE()) to give a guaranteed
unique timestamp,even when inserting multiple rows within a single SQL
statement.
In other words. DB2 depends on the services of the OS. In Windows that's
pretty rough (hence the steps of 7ms when you do "ping").

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Jan 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lkrubner | last post by:
This might be an idiot question, but how do you group by timestamps by date? I mean, given a large number of timestamps, spanning many months, how do grab them and say how many are from each day?...
2
by: Sugapablo | last post by:
From the manual, it seems negative timestamps should work on Linux, just not Windows. But anything I try before 1970, (i.e. a negative timestamp) is giving me 12/31/1969. Is this right? --
5
by: Robert Schuldenfrei | last post by:
Dear NG, I have not heard from anyone about a good book that deals with the concurrency issue in SQL Server using C#. I have PROMISED Nick I would not use record locking and I have used an old...
2
by: Chumma Dede | last post by:
Hi, I need to code a DLL in .NET which logs the response times for our asp.net multi-tier application. The problem is we need to log the timestamps at multiple stages in a process lifecycle...
4
by: Craig G | last post by:
im not too sure how i should be storing the SQL2000 timestamps basically i return a dataset which is used to populate an editable grid. this dataset contains the timestamp. how should i be...
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
16
by: maruk2 | last post by:
I have some old data files with old timestamps, where timestmap=time(NULL), some of them date back to the year 1999. I want to my code to print the timestamps and each one to include...
1
by: maruk2 | last post by:
I have some old data files with old timestamps, where timestmap=time(NULL), some of them date back to the year 1999. I want my code to print the timestamps and each one to include...
2
by: adx1 | last post by:
In Windows 7, how can I get Explorer to always display file Created, Modified and Accessed timestamps in the Properties dialog (eg Modified: 3:37:39 pm), without "dumbing down" these results (eg...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.