APIdock / Ruby
/
module

Date ::Format

ruby latest stable

Module deprecated or moved

This module is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

No documentation available for this module.

Constants

ABBR_DAYS = {\n'sun' => 0, 'mon' => 1, 'tue' => 2, 'wed' => 3,\n'thu' => 4, 'fri' => 5, 'sat' => 6\n}

ABBR_MONTHS = {\n'jan' => 1, 'feb' => 2, 'mar' => 3, 'apr' => 4,\n'may' => 5, 'jun' => 6, 'jul' => 7, 'aug' => 8,\n'sep' => 9, 'oct' =>10, 'nov' =>11, 'dec' =>12\n}

DAYS = {\n'sunday' => 0, 'monday' => 1, 'tuesday' => 2, 'wednesday'=> 3,\n'thursday' => 4, 'friday' => 5, 'saturday' => 6\n}

MONTHS = {\n'january' => 1, 'february' => 2, 'march' => 3, 'april' => 4,\n'may' => 5, 'june' => 6, 'july' => 7, 'august' => 8,\n'september'=> 9, 'october' =>10, 'november' =>11, 'december' =>12\n}

ZONES = {\n'ut' => 0*3600, 'gmt' => 0*3600, 'est' => -5*3600, 'edt' => -4*3600,\n'cst' => -6*3600, 'cdt' => -5*3600, 'mst' => -7*3600, 'mdt' => -6*3600,\n'pst' => -8*3600, 'pdt' => -7*3600,\n'a' => 1*3600, 'b' => 2*3600, 'c' => 3*3600, 'd' => 4*3600,\n'e' => 5*3600, 'f' => 6*3600, 'g' => 7*3600, 'h' => 8*3600,\n'i' => 9*3600, 'k' => 10*3600, 'l' => 11*3600, 'm' => 12*3600,\n'n' => -1*3600, 'o' => -2*3600, 'p' => -3*3600, 'q' => -4*3600,\n'r' => -5*3600, 's' => -6*3600, 't' => -7*3600, 'u' => -8*3600,\n'v' => -9*3600, 'w' =>-10*3600, 'x' =>-11*3600, 'y' =>-12*3600,\n'z' => 0*3600,\n\n'utc' => 0*3600, 'wet' => 0*3600,\n'at' => -2*3600, 'brst'=> -2*3600, 'ndt' => -(2*3600+1800),\n'art' => -3*3600, 'adt' => -3*3600, 'brt' => -3*3600, 'clst'=> -3*3600,\n'nst' => -(3*3600+1800),\n'ast' => -4*3600, 'clt' => -4*3600,\n'akdt'=> -8*3600, 'ydt' => -8*3600,\n'akst'=> -9*3600, 'hadt'=> -9*3600, 'hdt' => -9*3600, 'yst' => -9*3600,\n'ahst'=>-10*3600, 'cat' =>-10*3600, 'hast'=>-10*3600, 'hst' =>-10*3600,\n'nt' =>-11*3600,\n'idlw'=>-12*3600,\n'bst' => 1*3600, 'cet' => 1*3600, 'fwt' => 1*3600, 'met' => 1*3600,\n'mewt'=> 1*3600, 'mez' => 1*3600, 'swt' => 1*3600, 'wat' => 1*3600,\n'west'=> 1*3600,\n'cest'=> 2*3600, 'eet' => 2*3600, 'fst' => 2*3600, 'mest'=> 2*3600,\n'mesz'=> 2*3600, 'sast'=> 2*3600, 'sst' => 2*3600,\n'bt' => 3*3600, 'eat' => 3*3600, 'eest'=> 3*3600, 'msk' => 3*3600,\n'msd' => 4*3600, 'zp4' => 4*3600,\n'zp5' => 5*3600, 'ist' => (5*3600+1800),\n'zp6' => 6*3600,\n'wast'=> 7*3600,\n'cct' => 8*3600, 'sgt' => 8*3600, 'wadt'=> 8*3600,\n'jst' => 9*3600, 'kst' => 9*3600,\n'east'=> 10*3600, 'gst' => 10*3600,\n'eadt'=> 11*3600,\n'idle'=> 12*3600, 'nzst'=> 12*3600, 'nzt' => 12*3600,\n'nzdt'=> 13*3600,\n\n'afghanistan' => 16200, 'alaskan' => -32400,\n'arab' => 10800, 'arabian' => 14400,\n'arabic' => 10800, 'atlantic' => -14400,\n'aus central' => 34200, 'aus eastern' => 36000,\n'azores' => -3600, 'canada central' => -21600,\n'cape verde' => -3600, 'caucasus' => 14400,\n'cen. australia' => 34200, 'central america' => -21600,\n'central asia' => 21600, 'central europe' => 3600,\n'central european' => 3600, 'central pacific' => 39600,\n'central' => -21600, 'china' => 28800,\n'dateline' => -43200, 'e. africa' => 10800,\n'e. australia' => 36000, 'e. europe' => 7200,\n'e. south america' => -10800, 'eastern' => -18000,\n'egypt' => 7200, 'ekaterinburg' => 18000,\n'fiji' => 43200, 'fle' => 7200,\n'greenland' => -10800, 'greenwich' => 0,\n'gtb' => 7200, 'hawaiian' => -36000,\n'india' => 19800, 'iran' => 12600,\n'jerusalem' => 7200, 'korea' => 32400,\n'mexico' => -21600, 'mid-atlantic' => -7200,\n'mountain' => -25200, 'myanmar' => 23400,\n'n. central asia' => 21600, 'nepal' => 20700,\n'new zealand' => 43200, 'newfoundland' => -12600,\n'north asia east' => 28800, 'north asia' => 25200,\n'pacific sa' => -14400, 'pacific' => -28800,\n'romance' => 3600, 'russian' => 10800,\n'sa eastern' => -10800, 'sa pacific' => -18000,\n'sa western' => -14400, 'samoa' => -39600,\n'se asia' => 25200, 'malay peninsula' => 28800,\n'south africa' => 7200, 'sri lanka' => 21600,\n'taipei' => 28800, 'tasmania' => 36000,\n'tokyo' => 32400, 'tonga' => 46800,\n'us eastern' => -18000, 'us mountain' => -25200,\n'vladivostok' => 36000, 'w. australia' => 28800,\n'w. central africa' => 3600, 'w. europe' => 3600,\n'west asia' => 18000, 'west pacific' => 36000,\n'yakutsk' => 32400\n}

Files

  • lib/date/format.rb

Nested classes and modules

AltStyle によって変換されたページ (->オリジナル) /