473,405 Members | 2,282 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.

time constant

GS
I understand and can use time literals like
#2:30:00 PM
but what If I want to specify time zone -7?
Oct 4 '06 #1
2 1614
GS,

Your datetime is forever accoording your timezone as given in your system
settings.

You can use however by instance UTC to tell that to the datetime structure.

There is by the way in my opinion no TimeZone 7. Maybe are you using that
speaking localy. Globaly are codes used with 3 characters.

Beside inside the English speaking culture for times and even for that
inside the USA culture it is in my opinion not wise to use those litterals,
they are completely build around those cultures which is about 10% (and for
datetime even less) of the world cultures. Using the New DateTime statement
with ISO gives you a more general used method.

Just my thought,

Cor

"GS" <gs**********************@msnews.Nomail.comschre ef in bericht
news:uD**************@TK2MSFTNGP04.phx.gbl...
>I understand and can use time literals like
#2:30:00 PM
but what If I want to specify time zone -7?


Oct 4 '06 #2
GS
you are definitely right about UTC. In this particular application, the
users are limited to a locality and the users may travel but the actual time
to compare is like 2:30 MST or 4:30 EST. due to business practise. I don't
have preference one way or another although I am not conversant with UTC
conversion nor the classes.

Ultimately, literals will not be embedded in the application but will be in
application or user setting depending on applicability. I am a bit
concerned though there are a lot people not familiar with UTC but they
understand MST, EST ...etc. In other word the user interface will probably
have to deal with non UTC time.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:eJ**************@TK2MSFTNGP03.phx.gbl...
GS,

Your datetime is forever accoording your timezone as given in your system
settings.

You can use however by instance UTC to tell that to the datetime
structure.
>
There is by the way in my opinion no TimeZone 7. Maybe are you using that
speaking localy. Globaly are codes used with 3 characters.

Beside inside the English speaking culture for times and even for that
inside the USA culture it is in my opinion not wise to use those
litterals,
they are completely build around those cultures which is about 10% (and
for
datetime even less) of the world cultures. Using the New DateTime
statement
with ISO gives you a more general used method.

Just my thought,

Cor

"GS" <gs**********************@msnews.Nomail.comschre ef in bericht
news:uD**************@TK2MSFTNGP04.phx.gbl...
I understand and can use time literals like
#2:30:00 PM
but what If I want to specify time zone -7?


Oct 4 '06 #3

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

Similar topics

6
by: Lionel B | last post by:
Running VC++ 6 under Win2K on i386. I would like to assign a (compile-time) constant that resolves to a quiet NaN (of type double) I can assign a quiet NaN to a *variable* (of type const...
12
by: Frederick Gotham | last post by:
Over on comp.lang.c, Hallvard B Furuseth devised a compile-time constant representing the amount of value representation bits in an unsigned integer type. In true C fashion, here it is as a macro:...
3
by: Frederick Gotham | last post by:
(I'm not sure if there's already something in the Standard Library for doing this... ?) Is the following macro okay for getting a compile-time constant that indicates which negative number...
1
by: Frederick Gotham | last post by:
I've mentioned his name a few times here lately, but over on comp.lang.c, Hallvard B Furuseth has come up with a Log-base-2 function that serves as a compile-time constant. I'm not going to...
8
by: Martin Wells | last post by:
Anyone know a good compile-time constant to tell you how many bits are needed to store a given value? For instance: CALC_BITS_NEEDED(0) == 1 CALC_BITS_NEEDED(1) == 1 CALC_BITS_NEEDED(2) ...
22
by: Tomás Ó hÉilidhe | last post by:
I've been developing a C89 microcontroller application for a while now and I've been testing its compilation using gcc. I've gotten zero errors and zero warnings with gcc, but now that I've moved...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
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
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.