473,379 Members | 1,379 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,379 software developers and data experts.

Is there a Now time function that gets the Servers Now?

Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint

.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
9 933
You can use SQL to synchronize your time... I have a VB6 method somehwere
that does it...

bascially, its just a query to the getdate() function.
"Trint Smith" <tr********@hotmail.com> wrote in message
news:ua****************@TK2MSFTNGP10.phx.gbl...
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #2
I take that back...

Trint, your new to programming so this would be an excellent learning
project for you.

There are two distinct .NET ways you could do this. Remoting or Web
Services. Either case, you could set up a server side component (Remoting
Host or a Web Service) that would use the Now function to get the time on
that local machine (the server) and then transmit that to the requesting
client.

Simple app, but you'll get some insight into more .NET technology. Then you
can start asking questions like "what about lag?" and such if your looking
to make your timing calculation more precise =)

HTH,
CJ

"Trint Smith" <tr********@hotmail.com> wrote in message
news:ua****************@TK2MSFTNGP10.phx.gbl...
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #3
I take that back...

Trint, your new to programming so this would be an excellent learning
project for you.

There are two distinct .NET ways you could do this. Remoting or Web
Services. Either case, you could set up a server side component (Remoting
Host or a Web Service) that would use the Now function to get the time on
that local machine (the server) and then transmit that to the requesting
client.

Simple app, but you'll get some insight into more .NET technology. Then you
can start asking questions like "what about lag?" and such if your looking
to make your timing calculation more precise =)

HTH,
CJ

"Trint Smith" <tr********@hotmail.com> wrote in message
news:ua****************@TK2MSFTNGP10.phx.gbl...
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #4
Cor
Hi Trint,

If you do in ASP.NET
my.textbox.text = Now.tostring

You get the time from the server, to get the client time is more work.

Cor
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint

Nov 20 '05 #5
Sorry about the double post.

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:10*************@corp.supernews.com...
I take that back...

Trint, your new to programming so this would be an excellent learning
project for you.

There are two distinct .NET ways you could do this. Remoting or Web
Services. Either case, you could set up a server side component (Remoting
Host or a Web Service) that would use the Now function to get the time on
that local machine (the server) and then transmit that to the requesting
client.

Simple app, but you'll get some insight into more .NET technology. Then you can start asking questions like "what about lag?" and such if your looking to make your timing calculation more precise =)

HTH,
CJ

"Trint Smith" <tr********@hotmail.com> wrote in message
news:ua****************@TK2MSFTNGP10.phx.gbl...
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 20 '05 #6
Ahh... damnit... valid point Cor, I keep forgetting Trint is doing ASP.NET
work...

Well... my idea "would" have been cool. =)

-CJ
"Cor" <no*@non.com> wrote in message
news:OQ****************@TK2MSFTNGP11.phx.gbl...
Hi Trint,

If you do in ASP.NET
my.textbox.text = Now.tostring

You get the time from the server, to get the client time is more work.

Cor
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?
Any help is appreciated.
Thanks,
Trint


Nov 20 '05 #7
Trint,

* Trint Smith <tr********@hotmail.com> scripsit:
Is there a Now time function that gets the Servers Now?
Instead of the Now from local computer?


Basics:

<http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1305.html>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet/>
Nov 20 '05 #8
I'm using Now now. But I thought it got the local computers time.
Thanks,
Trint

.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #9
Sounds like Spaceballs around here ("I'm using Now Now")

...Some of the script I remember from the movie
"We're at Now Now"
"Go back to then"
"We Can't"
"Why"
"Because we just passed it"
"When will then be now"
"Soon"
Nov 20 '05 #10

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

Similar topics

4
by: dan glenn | last post by:
Say, I want to set a cookie and have it expire an hour after it's set. It's looking like this is only possible for browsers which are in the same time zone as my server?? In other words, if I...
7
by: Jim Seymour | last post by:
I have a contact form that uses PHP's mail() function. It recently came to my attention that (some?) MS-Windows mail servers may not properly process data given to the mail() function that's only...
3
by: Scott | last post by:
I have created my site in the root (www.mysite.com) and have recently added a directory called test (www.mysite.com/test/). The environment setup is: Server: Windows 2000 Server SP4 Development...
23
by: cerilocke | last post by:
I have an identical SQL database on two machines (my machine and a web server) that links to a database on a third server (S3). When I execute a stored procedure on my machine that accesses a...
17
by: MLH | last post by:
A97 Topic: If there is a way to preserve the values assigned to global variables when an untrapped runtime error occurs? I don't think there is, but I thought I'd ask. During development, I'm...
18
by: José de Paula | last post by:
Does C99 support defining a function in the body of another function? I mean, something like: int a (void) { int x; int y; int b(int c) {
28
by: marcpirat | last post by:
hi we create a real-time program on a embedded linux system. the program will run a few time by second i would like to know if it's better to create global variable or create the variable in...
4
by: ani | last post by:
I have a datalist control in my aspx page(this is paginated and everytime submits to itself). I am calling a function within my datalist that returns a html control (radio button ) in the form of...
14
by: Gotisch | last post by:
Hi, we are currently writing an mostly singlethreaded (game)server application in c#. But we are encountering problems with the Garbage Collector: After a certain time but also apparently...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.