MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / seconds

Method seconds

src/danfojs-base/core/datetime.ts:213–216  ·  view source on GitHub ↗

* Returns the second of the day, in local time * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "2019-01-01", * "2019-02-05", * "2021-03-02", * "2020-04-01", * ] * const df = new Series(data) * const second = df.dt.sec

()

Source from the content-addressed store, hash-verified

211 * ```
212 */
213 seconds() {
214 const newValues = this.$dateObjectArray.map(date => date.getSeconds())
215 return new Series(newValues);
216 }
217
218 /**
219 * Returns the minute of the day, in local time

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected