MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getEpoch

Function getEpoch

web/pgadmin/static/js/utils.js:85–88  ·  view source on GitHub ↗
(inp_date)

Source from the content-addressed store, hash-verified

83}
84
85export function getEpoch(inp_date) {
86 let date_obj = inp_date || new Date();
87 return parseInt(date_obj.getTime()/1000);
88}
89
90/* Eucladian GCD */
91export function getGCD(inp_arr) {

Callers 10

activity.jsFile · 0.90
showModalFunction · 0.90
GraphsFunction · 0.90
PGDReplicationFunction · 0.90
MemoryFunction · 0.90
CpuDetailsFunction · 0.90
StorageFunction · 0.90
SummaryFunction · 0.90
activity_spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected