Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pushrocks/smarttime

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushrocks/smarttime - npm Package Compare versions

Comparing version 3.0.9 to 3.0.10

1

dist/smarttime.classes.extendeddate.d.ts
export declare type TAvailableZone = 'Europe/Berlin';
export declare class ExtendedDate extends Date {
static fromMillis(milliSeconds: number): ExtendedDate;
static fromEuropeanDate(europeanDate: string): ExtendedDate;

@@ -4,0 +5,0 @@ /** */

7

dist/smarttime.classes.extendeddate.js

@@ -12,2 +12,5 @@ "use strict";

class ExtendedDate extends Date {
static fromMillis(milliSeconds) {
return new ExtendedDate(milliSeconds);
}
static fromEuropeanDate(europeanDate) {

@@ -23,3 +26,3 @@ const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate);

/** */
static fromEuropeanDateAndTime(europeanDateArg, timeArg = '12:00', zoneArg = 'Europe/Berlin') {
static fromEuropeanDateAndTime(europeanDateArg, timeArg = '12:00:00', zoneArg = 'Europe/Berlin') {
const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDateArg);

@@ -41,2 +44,2 @@ const sliceDate = (dateString) => {

exports.ExtendedDate = ExtendedDate;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLmNsYXNzZXMuZXh0ZW5kZWRkYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR0aW1lLmNsYXNzZXMuZXh0ZW5kZWRkYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLDZEQUErQztBQUkvQyxNQUFhLFlBQWEsU0FBUSxJQUFJO0lBQzdCLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxZQUFvQjtRQUNqRCxNQUFNLFNBQV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DQUFDLENBQUM7SUFDckMsQ0FBQztJQUVELFlBQVksU0FBaUI7UUFDM0IsS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ25CLENBQUM7Q0FDRjtBQXZDRCxvQ0F1Q0MifQ==
{
"name": "@pushrocks/smarttime",
"private": false,
"version": "3.0.9",
"version": "3.0.10",
"description": "handle time in smart ways",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

@@ -6,2 +6,6 @@ import * as plugins from './smarttime.plugins';

export class ExtendedDate extends Date {
public static fromMillis(milliSeconds: number) {
return new ExtendedDate(milliSeconds);
}
public static fromEuropeanDate(europeanDate: string) {

@@ -21,3 +25,3 @@ const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate);

europeanDateArg: string,
timeArg: string = '12:00',
timeArg: string = '12:00:00',
zoneArg: TAvailableZone = 'Europe/Berlin'

@@ -24,0 +28,0 @@ ) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc