Added "time" part option to datePart function.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@448 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
ce8963d009
commit
8fb23913ce
@ -56,6 +56,9 @@ public class DatePart implements Function {
|
||||
|
||||
return s_daysOfWeek[r];
|
||||
|
||||
} else if ("time".equals(part)) {
|
||||
return c.getTimeInMillis();
|
||||
|
||||
} else {
|
||||
return new EvalError("Date unit '" + part + "' not recognized.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user