@simplism/core
Advanced tools
Comparing version 10.3.7 to 10.3.8
@@ -541,3 +541,6 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
Time.parse = function (value) { | ||
if (/^[0-9]{1,2}$/.test(value)) { | ||
if (value instanceof Date) { | ||
return new Time(value); | ||
} | ||
else if (/^[0-9]{1,2}$/.test(value)) { | ||
var hour = Number(value); | ||
@@ -544,0 +547,0 @@ return new Time(hour * 60 * 60 * 1000); |
@@ -8,3 +8,3 @@ export declare class Time { | ||
constructor(date: Date); | ||
static parse(value: string): Time; | ||
static parse(value: string | Date): Time; | ||
day: number; | ||
@@ -11,0 +11,0 @@ hour: number; |
{ | ||
"name": "@simplism/core", | ||
"version": "10.3.7", | ||
"version": "10.3.8", | ||
"description": "Simplism Core Package", | ||
@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism", |
@@ -46,5 +46,8 @@ import {ArgumentError} from "../error/ArgumentError"; | ||
public static parse(value: string): Time { | ||
public static parse(value: string | Date): Time { | ||
if (value instanceof Date) { | ||
return new Time(value); | ||
} | ||
// 3, 03 => 3시간 | ||
if (/^[0-9]{1,2}$/.test(value)) { | ||
else if (/^[0-9]{1,2}$/.test(value)) { | ||
const hour = Number(value); | ||
@@ -51,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
226624
3224