Skip to main content
Module

x/date_fns/index.js>subSeconds

date-fns Deno package
Very Popular
Go to Latest
function subSeconds
import { subSeconds } from "https://deno.land/x/date_fns@v2.7.0/index.js";

Examples

// Subtract 30 seconds from 10 July 2014 12:45:00: var result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) //=> Thu Jul 10 2014 12:44:30

Parameters

dirtyDate
  • the date to be changed
dirtyAmount
  • the amount of seconds to be subtracted