~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to lib/date.rb

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1037
1037
  # Day Number day 0.
1038
1038
  #
1039
1039
  # +sg+ specifies the Day of Calendar Reform.
1040
 
  def self.parse(str='-4712-01-01', comp=false, sg=ITALY)
1041
 
    elem = _parse(str, comp)
 
1040
  def self.parse(str='-4712-01-01', hints={}, sg=ITALY)
 
1041
    elem = _parse(str, hints)
 
1042
    new_by_frags(elem, sg)
 
1043
  end
 
1044
 
 
1045
  def self.iso8601(str='-4712-01-01', sg=ITALY) # :nodoc:
 
1046
    elem = _iso8601(str)
 
1047
    new_by_frags(elem, sg)
 
1048
  end
 
1049
 
 
1050
  def self.rfc3339(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
 
1051
    elem = _rfc3339(str)
 
1052
    new_by_frags(elem, sg)
 
1053
  end
 
1054
 
 
1055
  def self.xmlschema(str='-4712-01-01', sg=ITALY) # :nodoc:
 
1056
    elem = _xmlschema(str)
 
1057
    new_by_frags(elem, sg)
 
1058
  end
 
1059
 
 
1060
  def self.rfc2822(str='Mon, 1 Jan -4712 00:00:00 +0000', sg=ITALY) # :nodoc:
 
1061
    elem = _rfc2822(str)
 
1062
    new_by_frags(elem, sg)
 
1063
  end
 
1064
 
 
1065
  class << self; alias_method :rfc822, :rfc2822 end
 
1066
 
 
1067
  def self.httpdate(str='Mon, 01 Jan -4712 00:00:00 GMT', sg=ITALY) # :nodoc:
 
1068
    elem = _httpdate(str)
 
1069
    new_by_frags(elem, sg)
 
1070
  end
 
1071
 
 
1072
  def self.jisx0301(str='-4712-01-01', sg=ITALY) # :nodoc:
 
1073
    elem = _jisx0301(str)
1042
1074
    new_by_frags(elem, sg)
1043
1075
  end
1044
1076
 
1644
1676
  # Day Number day 0.
1645
1677
  #
1646
1678
  # +sg+ specifies the Day of Calendar Reform.
1647
 
  def self.parse(str='-4712-01-01T00:00:00+00:00', comp=false, sg=ITALY)
1648
 
    elem = _parse(str, comp)
 
1679
  def self.parse(str='-4712-01-01T00:00:00+00:00', hints={}, sg=ITALY)
 
1680
    elem = _parse(str, hints)
 
1681
    new_by_frags(elem, sg)
 
1682
  end
 
1683
 
 
1684
  def self.iso8601(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
 
1685
    elem = _iso8601(str)
 
1686
    new_by_frags(elem, sg)
 
1687
  end
 
1688
 
 
1689
  def self.rfc3339(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
 
1690
    elem = _rfc3339(str)
 
1691
    new_by_frags(elem, sg)
 
1692
  end
 
1693
 
 
1694
  def self.xmlschema(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
 
1695
    elem = _xmlschema(str)
 
1696
    new_by_frags(elem, sg)
 
1697
  end
 
1698
 
 
1699
  def self.rfc2822(str='Mon, 1 Jan -4712 00:00:00 +0000', sg=ITALY) # :nodoc:
 
1700
    elem = _rfc2822(str)
 
1701
    new_by_frags(elem, sg)
 
1702
  end
 
1703
 
 
1704
  class << self; alias_method :rfc822, :rfc2822 end
 
1705
 
 
1706
  def self.httpdate(str='Mon, 01 Jan -4712 00:00:00 GMT', sg=ITALY) # :nodoc:
 
1707
    elem = _httpdate(str)
 
1708
    new_by_frags(elem, sg)
 
1709
  end
 
1710
 
 
1711
  def self.jisx0301(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
 
1712
    elem = _jisx0301(str)
1649
1713
    new_by_frags(elem, sg)
1650
1714
  end
1651
1715