Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting the time [DB2 - .NET]

Status
Not open for further replies.

julen

Programmer
Mar 26, 2006
27
ES
Hi friends,

I would like some ideas of how can i do that.

I have a .NET windows application. This application,
has a logon window.

When I logon, the application go to DB2 database
and get the db2 timestamp.

I set this timestamp into a variable of .NET which I use
it for different things.

But my question is...

How can I do to have the hour of the database db2 in this
variable without going again into the db2. I mean, how can I know the real time of the db2?

I was thinking having a time counter or something like that,
but I am not sure how can I do it.

Another thing that i can't do, is to take windows time because it can be changed.

Any ideas?


Thanks.


 
My guess would be that current time will be based on the operating system where DB2 runs on.
Can you explain what you mean by : 'hour of the database db2'?



Ties Blom

 
Hi,

'hour of the database db2' is


current time of the operating system where DB2 runs on.


So, how can i do?


Thanks again

 
Julen,
Why do you not wish to go back to DB2 to get another timestamp? The overhead on this is relatively little.

If you truly cannot go back to DB2, then this is not really a DB2 question, but more a question of what can be done within the .NET environment. Sadly, I know very little about this, and cannot really comment, other to say that I would have thought that you would be able to take the time from windows, or possible from a syncronising website.

Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top