![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
12-20-10, 05:45 AM
|
#11 | |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
There is one thing to it though: knowing the difference between local and GMT time down to this precision enables you to precisely figure out your longitudinal position circumventing navigator's fix errors, with that given the time display should be either locked to GMT or the 'real-world hardcore' option is to make the 'local' time clock reflect nautical time zones (you shift the clock by one hour every time you move 15 degrees longitudinally east or west). Here is the formula for 'local' time reflecting current nautical time-zone based on the last navigator's fix: Code:
{
int sign = 1;
if (' longitude from the last fix is Western ') then
sign = -1;
int long = ' integer of longitude from the last fix ';
//Now get the number of hours you have to add (or subtract)
hours_difference = sign * int(long/15);
nautical_time_zone_time = GMT_time + hours_difference;
}
|
|
|
|
| Tags |
| dbrn, favorite, new ui |
|
|
