use of tech.tablesaw.api.IntColumn in project symja_android_library by axkr.
the class DateTimeMapFunctions method hour.
default IntColumn hour() {
IntColumn newColumn = IntColumn.create(name() + "[" + "hour" + "]");
for (int r = 0; r < size(); r++) {
if (!isMissing(r)) {
long c1 = getLongInternal(r);
newColumn.append(getHour(c1));
} else {
newColumn.appendMissing();
}
}
return newColumn;
}
use of tech.tablesaw.api.IntColumn in project symja_android_library by axkr.
the class DateTimeMapFunctions method minuteOfDay.
default IntColumn minuteOfDay() {
IntColumn newColumn = IntColumn.create(name() + "[" + "minute-of-day" + "]");
for (int r = 0; r < size(); r++) {
if (!isMissing(r)) {
long c1 = getLongInternal(r);
newColumn.append((short) getMinuteOfDay(c1));
} else {
newColumn.appendMissing();
}
}
return newColumn;
}
use of tech.tablesaw.api.IntColumn in project symja_android_library by axkr.
the class DateTimeMapFunctions method secondOfDay.
default IntColumn secondOfDay() {
IntColumn newColumn = IntColumn.create(name() + "[" + "second-of-day" + "]");
for (int r = 0; r < size(); r++) {
if (!isMissing(r)) {
long c1 = getLongInternal(r);
newColumn.append(getSecondOfDay(c1));
} else {
newColumn.appendMissing();
}
}
return newColumn;
}
use of tech.tablesaw.api.IntColumn in project symja_android_library by axkr.
the class DateTimeMapFunctions method dayOfMonth.
default IntColumn dayOfMonth() {
IntColumn newColumn = IntColumn.create(this.name() + " day of month", size());
for (int r = 0; r < this.size(); r++) {
if (!isMissing(r)) {
long c1 = this.getLongInternal(r);
newColumn.set(r, getDayOfMonth(c1));
}
}
return newColumn;
}
use of tech.tablesaw.api.IntColumn in project symja_android_library by axkr.
the class DateTimeMapFunctions method minute.
default IntColumn minute() {
IntColumn newColumn = IntColumn.create(name() + "[" + "minute" + "]", size());
for (int r = 0; r < size(); r++) {
if (!isMissing(r)) {
long c1 = getLongInternal(r);
newColumn.set(r, getMinute(c1));
}
}
return newColumn;
}
Aggregations