This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def trans_lat(lat) | |
lat =~ /([0-9]+)([NS])/ | |
num, dir = $1.to_i, $2 | |
dir == 'S' ? -num : num | |
end | |
def trans_long(long) | |
long =~ /([0-9]+)([EW])/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Version: 1.0 Alpha-1 | |
* Build Date: 13-Nov-2007 | |
* Copyright (c) 2006-2007, Coolite Inc. (http://www.coolite.com/). All rights reserved. | |
* License: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/. | |
* Website: http://www.datejs.com/ or http://www.coolite.com/datejs/ | |
*/ | |
Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy", |