/macosx-10.10/ruby-106/ruby/test/date/ |
H A D | test_date_compat.rb | 7 assert_equal(DateTime.new, Date.new) 8 assert_equal(DateTime.new(2002,3,19), Date.new(2002,3,19)) 9 assert_equal(DateTime.new(2002,3,19, 0,0,0), Date.new(2002,3,19)) 10 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0), Date.new(2002,3,19)) 11 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0.to_r), Date.new(2002,3,19)) 12 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0, Date::GREGORIAN), Date.new(2002,3,19, Date::GREGORIAN)) 13 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0, Date::JULIAN), Date [all...] |
H A D | test_date_base.rb | 22 assert_equal(0, Date::Infinity.new(-1) <=> Date::Infinity.new(-1)) 23 assert_equal(-1, Date::Infinity.new(-1) <=> Date::Infinity.new(+1)) 24 assert_equal(-1, Date::Infinity.new(-1) <=> 0) 26 assert_equal(1, Date::Infinity.new(+1) <=> Date::Infinity.new(-1)) 27 assert_equal(0, Date::Infinity.new(+1) <=> Date::Infinity.new(+1)) 28 assert_equal(1, Date [all...] |
H A D | test_date_arith.rb | 13 d = Date.new(2000,2,29) + -1 15 d = Date.new(2000,2,29) + 0 17 d = Date.new(2000,2,29) + 1 28 Date.new(2000,2,29) + 'foo' 34 Date.new(2000,2,29) + Time.mktime(2000,2,29) 42 d = Date.new(2000,3,1) - -1 44 d = Date.new(2000,3,1) - 0 46 d = Date.new(2000,3,1) - 1 49 d = Date.new(2000,3,1) - Date [all...] |
H A D | test_switch_hitter.rb | 7 [Date.new, 8 Date.civil, 15 [Date.new(2001), 16 Date.civil(2001), 23 d = Date.new(2001, 2, 3) 25 d = Date.new(2001, 2, Rational('3.5')) 27 d = Date.new(2001,2, 3, Date::JULIAN) 29 d = Date.new(2001,2, 3, Date [all...] |
H A D | test_date.rb | 4 class DateSub < Date; end 10 assert_nil(Date::MONTHNAMES[0]) 11 assert_equal('January', Date::MONTHNAMES[1]) 12 assert_equal(13, Date::MONTHNAMES.size) 13 assert_equal('Sunday', Date::DAYNAMES[0]) 14 assert_equal(7, Date::DAYNAMES.size) 16 assert_nil(Date::ABBR_MONTHNAMES[0]) 17 assert_equal('Jan', Date::ABBR_MONTHNAMES[1]) 18 assert_equal(13, Date::ABBR_MONTHNAMES.size) 19 assert_equal('Sun', Date [all...] |
H A D | test_date_new.rb | 7 d = Date.jd 13 d2 = Date.jd 18 d = Date.jd(0) 35 d = Date.ordinal 41 d2 = Date.ordinal 46 d = Date.ordinal(-4712,1) 49 d = Date.ordinal(-4712,1.0) 61 d = Date.ordinal(-1,-1) 71 Date.ordinal(2001,366) 79 d = Date [all...] |
H A D | test_date_attr.rb | 7 date = Date.new(1965, 5, 23) 13 assert_match(/\#<Date\d?: 1965-05-23 \(4877807\/2,0,2299161\)>/, 73 assert_equal(Date::ITALY, d.start) 82 d = Date.new(2005, 10, 23) 91 d = Date.new(2005, 10, 30) 99 skip unless Date.new.respond_to?(:nth_kday?, true) 100 assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 1,0)) 101 assert_equal(true, Date.new(2001,1,14).__send__(:nth_kday?, 2,0)) 102 assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 3,0)) 103 assert_equal(false, Date [all...] |
H A D | test_date_strptime.rb | 75 assert_equal(s[1], Date._strptime(s[0], f), [f, s].inspect) 79 assert_equal(s[1], Date._strptime(s[0], f2), [f2, s].inspect) 82 assert_equal(nil, Date._strptime(s[0], f2), [f2, s].inspect) 83 assert_equal({}, Date._strptime(f2, f2), [f2, s].inspect) 88 assert_equal(s[1], Date._strptime(s[0], f2), [f2, s].inspect) 91 assert_equal(nil, Date._strptime(s[0], f2), [f2, s].inspect) 92 assert_equal({}, Date._strptime(f2, f2), [f2, s].inspect) 98 h = Date._strptime('2001-02-03') 105 assert_equal({}, Date._strptime('', '')) 106 assert_equal({:leftover=>"\s"*3}, Date [all...] |
H A D | test_date_parse.rb | 425 h = Date._parse(*x) 466 h = Date._parse(*x) 477 h = Date._parse('22:45:59.5') 479 h = Date._parse('22:45:59.05') 481 h = Date._parse('22:45:59.005') 483 h = Date._parse('22:45:59.0123') 486 h = Date._parse('224559.5') 488 h = Date._parse('224559.05') 490 h = Date._parse('224559.005') 492 h = Date [all...] |
H A D | test_date_marshal.rb | 7 d = Date.new 14 d = Date.today 28 d = Date.today
|
H A D | test_date_strftime.rb | 70 d = Date.new(2001,2,3) 93 d = Date.new(2001,2,3) 118 (Date.new(1970,1,1)..Date.new(2037,12,31)).each do |d| 128 (Date.new(1970,1,1)..Date.new(2037,12,31)).each do |d| 355 d = Date.new(2001,2,3) 397 assert_equal('1868-01-25', Date.parse('1868-01-25').jisx0301) 398 assert_equal('1872-12-31', Date.parse('1872-12-31').jisx0301) 400 assert_equal('M06.01.01', Date [all...] |
/macosx-10.10/CPAN-56/Modules/Date-Calc-6.3/ |
H A D | Makefile | 1 NAME = Date-Calc
|
/macosx-10.10/CPAN-56/Modules/HTTP-Date-6.02/ |
H A D | Makefile | 1 NAME = HTTP-Date
|
/macosx-10.10/ruby-106/ruby/lib/optparse/ |
H A D | date.rb | 11 OptionParser.accept(Date) do |s,| 13 Date.parse(s) if s
|
/macosx-10.10/webdavfs-367/mount.tproj/ |
H A D | webdav_utils.h | 49 }Date; typedef in typeref:struct:__anon14361 51 const UInt8* CFGregorianDateCreateWithBytes(CFAllocatorRef alloc, const UInt8* bytes, CFIndex length, Date* date, CFTimeZoneRef* tz); 53 CFIndex CFGregorianDateCreateWithString(CFAllocatorRef alloc, CFStringRef str, Date* date, CFTimeZoneRef* tz); 57 Boolean DateIsValid(Date gdate);
|
/macosx-10.10/WebCore-7600.1.25/fileapi/ |
H A D | File.idl | 33 readonly attribute Date lastModifiedDate;
|
/macosx-10.10/WebCore-7600.1.25/Modules/mediastream/ |
H A D | RTCStatsReport.idl | 30 readonly attribute Date timestamp;
|
/macosx-10.10/ruby-106/ruby/ext/json/lib/json/add/ |
H A D | date.rb | 6 # Date serialization/deserialization 7 class Date class 10 # <tt>m</tt>, day <tt>d</tt> and Day of Calendar Reform <tt>sg</tt> to Date. 29 # Stores class name (Date) with Julian year <tt>y</tt>, month <tt>m</tt>, day
|
/macosx-10.10/ruby-106/ruby/sample/ |
H A D | biorhythm.rb | 21 # Date: Tue, 1 Feb 1994 07:06:16 GMT 57 :date => Date.today, 61 opts.on("-b", "--birthday=DATE", Date, "specify your birthday"){|v| 64 opts.on("--date=DATE", Date, "specify date to show"){|v| 86 bd = options[:birthday] || Date.parse(prompt("Your birthday (YYYYMMDD): ")) 87 dd = options[:date] || Date.today
|
H A D | cal.rb | 12 'cn' => Date::GREGORIAN, # China 22 'jp' => Date::GREGORIAN, # Japan 29 'os' => Date::JULIAN, # (old style) 30 'ns' => Date::GREGORIAN # (new style) 56 d = (1..31).detect{|x| Date.valid_date?(y, m, x, @start)} 57 fi = Date.new(y, m, d, @start) 155 to = Date.today
|
/macosx-10.10/BerkeleyDB-21/db/examples_java/src/persist/ |
H A D | EventExampleDPL.java | 16 import java.util.Date; 66 private Date time; 76 Event(Date time, 118 PrimaryIndex<Date,Event> eventByTime; 119 SecondaryIndex<Integer,Date,Event> eventByPrice; 173 eventByTime = store.getPrimaryIndex(Date.class, Event.class); 216 Date startDate = makeDate(Calendar.JUNE, 1); 217 Date endDate = makeDate(Calendar.AUGUST, 31); 257 private Date makeDate(int day) { 267 private Date makeDat [all...] |
/macosx-10.10/CPANInternal-159.1/Class-DBI-v3.0.17/t/testlib/ |
H A D | MyFoo.pm | 15 tdate => 'Date::Simple', 16 inflate => sub { Date::Simple->new(shift) },
|
/macosx-10.10/ruby-106/ruby/test/rdoc/ |
H A D | test_rdoc_comment.rb | 112 commercial() -> Date <br /> 113 commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br /> 114 commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9] 117 * ruby 1.8: returns a +Date+ for 1582-10-15 (the Day of Calendar Reform in 119 * ruby 1.9: returns a +Date+ for julian day 0 121 Otherwise, returns a +Date+ for the commercial week year, commercial week, 130 commercial() -> Date <br /> 131 commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br /> 132 commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9] 142 commercial() -> Date <b [all...] |
/macosx-10.10/tcl-105/tcl_ext/xotcl/xotcl/apps/utils/ |
H A D | xo-whichPkg | 14 date "[::xotcl::rcs date {$Date: 2006/02/18 22:17:32 $}]"
|
/macosx-10.10/CPANInternal-159.1/Template-Toolkit-2.25/lib/Template/Plugin/ |
H A D | Date.pm | 3 # Template::Plugin::Date 21 package Template::Plugin::Date; 150 eval { require "Date/Calc.pm" }; 151 $self->throw("failed to load Date::Calc: $@") if $@; 152 return Template::Plugin::Date::Calc->new('no context'); 157 eval { require "Date/Manip.pm" }; 158 $self->throw("failed to load Date::Manip: $@") if $@; 159 return Template::Plugin::Date::Manip->new('no context'); 169 package Template::Plugin::Date::Calc; 172 *throw = \&Template::Plugin::Date [all...] |