bob
so i want to get the time from a zip code lets say the user enters "11223" zip code (brooklyn, new york) i want it to show the time zone example 5:56 and lets say i get this number: 21:51:00 +0000 (ny time) how would i use that to tell the time bec. when i write label1.text=21:51:00 +0000 it just shows the number not the time. i also used datetime.now that just get the time from your computer. lets the some1 wrote zip code in california so it wouldn't be right thanks for reading
how
Answer
As with any problem it helps to understand as much as possible the details. In this case it means learning what a ZIP code (Zone Improvement Program Code) is and what the numbers mean.
But first you could consider a brute force approach to solving your timezone issue. This is where you would get a list of every single zip code and place it in a relational database. The data base would allow you to cross reference a given zip code to its destination post office location. Using this location info you would then cross reference its state location to a given time zone.
The brute force approach will work but requires a large amount of data.
To shrink this data down to size you can read about the ZIP code and quickly find out that the first three digits of the ZIP code identify a Sectional Center Facility (SCF) where mail destined for a specific geographical area is first sent on its way to its final destination. These presort locations handle mail for a large areas within a given state which you can then equate to a given time zone.
Because you don't care about a city within a given timezone but rather just the state the SCF section of a ZIP code will greatly shrink the size of the database by identifying a given state.
Thus you only need to consider the first three digits of the zip code.
As with any problem it helps to understand as much as possible the details. In this case it means learning what a ZIP code (Zone Improvement Program Code) is and what the numbers mean.
But first you could consider a brute force approach to solving your timezone issue. This is where you would get a list of every single zip code and place it in a relational database. The data base would allow you to cross reference a given zip code to its destination post office location. Using this location info you would then cross reference its state location to a given time zone.
The brute force approach will work but requires a large amount of data.
To shrink this data down to size you can read about the ZIP code and quickly find out that the first three digits of the ZIP code identify a Sectional Center Facility (SCF) where mail destined for a specific geographical area is first sent on its way to its final destination. These presort locations handle mail for a large areas within a given state which you can then equate to a given time zone.
Because you don't care about a city within a given timezone but rather just the state the SCF section of a ZIP code will greatly shrink the size of the database by identifying a given state.
Thus you only need to consider the first three digits of the zip code.
Windows 7 & VB.NET - how to change my username in Welcome Screen apart from Start Menu?
What
Hello, Ladies and Gentlemen
I'm doing a project and I want to change my account username in welcome screen ONLY, however, the name in start menu is like more descriptive than the welcome screen. E.g. welcome screen username = petj0d and start menu username = Jack, Peter.
and also whats the code in vb.net to get the username in welcome screen and start menu separated!
(extra info: I'm using my Laptop (Administrator), because I can't setup VB.NET in the company's computer to test it. that's why I needed to change my welcome screen username xD)
danke in advance :D
Answer
You can't without a special program.
You can't without a special program.
Powered by Yahoo! Answers



Comments :
Post a Comment