Mercurial > hg > ltpda
diff m-toolbox/classes/+utils/@timetools/getTimezone.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/+utils/@timetools/getTimezone.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,55 @@ +% GETIMEZONE Get the list of supported time zones. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DESCRIPTION: GETIMEZONE Get the cell array containing the list of +% supported time zones. +% +% CALL: timezones = getTimezone() +% +% +% VERSION: $Id: getTimezone.m,v 1.2 2009/05/07 16:22:59 nicola Exp $ +% +% HISTORY: 06-05-2009 N Tateo +% Creation +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +function timezones = getTimezone(varargin) + + if nargin>0, utils.helper.msg(0, 'warning: the function getTimezone accepts no input, but some were passed.'); + end + + timezones = {'UTC' ; ... + 'CET' ; ... + 'PST' ; ... + 'CST' ; ... + 'EST' ; ... + 'JST' ; ... + 'GMT-12' ; ... + 'GMT-11' ; ... + 'GMT-10' ; ... + 'GMT-09' ; ... + 'GMT-08' ; ... + 'GMT-07' ; ... + 'GMT-06' ; ... + 'GMT-05' ; ... + 'GMT-04' ; ... + 'GMT-03' ; ... + 'GMT-02' ; ... + 'GMT-01' ; ... + 'GMT' ; ... + 'GMT+01' ; ... + 'GMT+02' ; ... + 'GMT+03' ; ... + 'GMT+04' ; ... + 'GMT+05' ; ... + 'GMT+06' ; ... + 'GMT+07' ; ... + 'GMT+08' ; ... + 'GMT+09' ; ... + 'GMT+10' ; ... + 'GMT+11' ; ... + 'GMT+12' }; + +end +