Directions Magazine
Hello. Login | Register
Upcoming

Geospatial Files and Tools

Browse | Search | Submit File | Your Files

DateWidget 0.25

Quick Specs

  • Supporting GIS: Maptitude
  • Date Added: February 28th, 2011
  • Modified: February 28th, 2011
  • File size: 90KB
  • Total Downloads: 167
  • Download

Utilities for transforming dates within Maptitude GIS. GPLv3 license.

DateWidget.rsc contains five macros:

"Test"  is a simple demo allowing you to explore the functionality of the DateWidget.

"Date Field" provides a more applied demo of the DateWidget. This macro adds a new field (whose name is specified in the administrative settings) to hold the widgetized date (whose format is also specified in the administrative settings). It will then loop through all records, read the contents of the date field, and then write the widgetized date in the format specified in the options. The "Sample_dates.bin" file is provided as demo data.

"DateWidget" is the main macro. It converts dates from all-numeric formats, e.g. 2/14/2011 to formats such as February 14, 2011. If you use the string "today" for a date, it will produce today's date in the desired format. The macro takes two options related to input: date type (e.g. MDY vs. DMY) and separator (e.g. 2/14/2011 vs. 2-14-2011). It also accepts five options related to output: format (e.g. Monday, February 14, 2011 vs. 14-02-2011); day (include day of week if format is not otherwise specified); longmonth (e.g. Feb vs. February); zeroes (02/01/2011 vs. 2/1/2011); and language.

"DOW" is a helper macro for DateWidget, but may also be used separately,. It macro converts an English day of the week to another language. The first parameter, american_date, is a date of the form "MM/DD/YYYY". The second parameter, days, is an array of days of the week in the target language, beginning with Sunday.

"Today" is another helper macro for DateWidget that may be used separately. It converts today's date (via Maptitude's GetDateAndTime() function) into an American-style (MM/DD/YYYY) date, which is the format Maptitude requires for its built-in date functions.

Author's Information

Moshe Haspel

stay connected

Twitter RSS Facebook LinkedIn Delicious Apple Devices Android Blackberry

newsletter

Get the Daily Newsletter with the latest technology headlines and feature articles. Enter your email address.

Preview | Archive






recent comments

Towards a Global Licensing Framework for Geospatial Data

Is it time for a global licensing framework for geospatial data? The GSDI Legal and Economic Working group thinks so and offered a presentation and a way forward at the GSDI 13 conference held in Quebec City in May. The effort aims to harmonize existing licensing without changing fundamental access policies and funding models and be compatible with the diferences in national legal systems. That's a tall order, but an important one as the world moves toward geodata sharing. Geoff Zeiss reports.

Can Geofeedia Provide Location-based Citizen Input to Journalists?
Podcast: Kickstarter and Geography
Project Report for GISCorps: Geocoding Locations of NGOs in Sierra Leone
Bike Score Rates (and Maps) Bikeability
Intergraph’s SG&I President John Graham Talks about Hexagon 2012
Retail Mapping: Leveraging the Power of Location Intelligence for a Telecommunications Provider - Part Two
PolyZoom: See Details of Map Along with Context
Podcast: The Value of Geospatial Companies

DirectionsMag.com

About Us | Advertise | Contact Us | Web Terms & Conditions | Privacy Policy
© 2012 Directions Media. All Rights Reserved, 194 Green Bay Road, Glencoe, IL 60022