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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timeZone

Status
Not open for further replies.

stormbind

Technical User
Mar 6, 2003
1,165
GB
I have found objects called localZone and DaylightName but don't know which methods they work with? :/

I'm looking for a means of getting the users time zone only, i.e. PST, UTC, GMT etc. I don't need the offset.

Still looking for the answer on MSDN but if you can reply and save me some time it will be appreciated :)

Thanks all :)

----------
I'm willing to trade custom scripts for... [see profile]
 
That gives the offset as an integer but I don't need it to perform any calculations, I only wish to display the time zone as a string - as in GMT, BST, PST or CET etc.

For JScript .NET it's described here but there's no example of it's usage.


----------
I'm willing to trade custom scripts for... [see profile]
 
Maybe, but it's all parsed by MSIE isn't it?

So why can't it be used? Can vanilla JScript not acquire the name? :/

----------
I'm willing to trade custom scripts for... [see profile]
 
IE isn't an interpreter as such and can't distinguish .NET from apples, it can only render what you serve it in a markup language. Yes, you can create scripts in a .NET language, but you still have to wrap them in HTML tags in order for the browser to understand what it's supposed to do.

There's always a better way. The fun is trying to find it!
 
Not according to MSDN :/

> "The .NET Framework is an integral Windows component"

> To provide a consistent object-oriented programming
> environment whether object code is stored and executed
> locally, executed locally but Internet-distributed...

Requirements: MS Windows + MSIE 5.01

The .NET framework includes both Client & Server applications. One example of server-side .NET programming language is ASP.NET and one example of client-side programming language is JScript.NET

And MSIE powers the JScript.NET language, not the server.

----------
I'm willing to trade custom scripts for... [see profile]
 
Maybe this is not well discussed by Microsoft and there are some common misconceptions as a result?

I notice that Visual Studio .NET includes compilers for C++, VBasic and JScript - and they all work! But you cannot compile an .exe/dll from JScript in the Visual Studio GUI... you have to exit and run the compiler from the command line :/

Why would they intentionally make it less convenient for JScript programmers? And why is there so little documentation... very weird.

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top