Merge pull request #3893 from rogierschouten/timezonecomplete-1.15.0

Add typings for timezonecomplete-1.15.0
This commit is contained in:
Masahiro Wakame
2015-03-21 11:56:27 +09:00
2 changed files with 1345 additions and 1130 deletions
@@ -19,6 +19,9 @@ n = tc.weekDayOnOrBefore(2014, 1, 14, tc.WeekDay.Monday);
n = tc.secondOfDay(13, 59, 59);
n = tc.weekOfMonth(2014, 1, 1);
s = tc.timeUnitToString(tc.TimeUnit.Second);
var tu: tc.TimeUnit = tc.stringToTimeUnit("bla");
// DURATION
var d: tc.Duration;
@@ -54,6 +57,10 @@ d = d7.add(d6);
d = d7.sub(d6);
s = d7.toString();
b = d7.equals(d6);
b = d7.equalsExact(d6);
b = d7.identical(d6);
// TIMEZONE
var t: tc.TimeZone;
@@ -148,6 +155,7 @@ dt = dt.add(2, tc.TimeUnit.Hour);
dt = dt.add(2, tc.TimeUnit.Minute);
dt = dt.add(2, tc.TimeUnit.Second);
dt = dt.addLocal(2, tc.TimeUnit.Second);
dt = dt.addLocal(tc.minutes(2));
dt = dt.sub(tc.Duration.seconds(2));
dt = dt.sub(2, tc.TimeUnit.Year);
dt = dt.sub(2, tc.TimeUnit.Month);
@@ -157,6 +165,7 @@ dt = dt.sub(2, tc.TimeUnit.Hour);
dt = dt.sub(2, tc.TimeUnit.Minute);
dt = dt.sub(2, tc.TimeUnit.Second);
dt = dt.subLocal(2, tc.TimeUnit.Second);
dt = dt.subLocal(tc.minutes(2));
d = dt.diff(new tc.DateTime(9289234, tc.TimeZone.local()));
b = dt.lessThan(new tc.DateTime(9289234, tc.TimeZone.local()));
b = dt.lessEqual(new tc.DateTime(9289234, tc.TimeZone.local()));
@@ -181,6 +190,7 @@ s = tc.periodDstToString(tc.PeriodDst.RegularLocalTime);
var p: tc.Period;
p = new tc.Period(tc.DateTime.nowLocal(), 1, tc.TimeUnit.Hour, tc.PeriodDst.RegularLocalTime);
p = new tc.Period(tc.DateTime.nowLocal(), tc.hours(1), tc.PeriodDst.RegularLocalTime);
dt = p.start();
n = p.amount();
var tu: tc.TimeUnit = p.unit();
+1335 -1130
View File
File diff suppressed because it is too large Load Diff