Skip to content

Commit

Permalink
Added Duration.ZERO
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDuwaer committed Oct 4, 2021
1 parent 0440add commit 458fc5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "globol",
"version": "0.4.3",
"version": "0.4.4",
"description": "Javascript/Typescript date/time as it should be: immutable, fluent, multi-zone, intuitive. Inspired by the masterful java.time library which suddenly made dates easy.",
"keywords": [
"time",
Expand Down
5 changes: 5 additions & 0 deletions src/Duration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ export class Duration
);
}

public static get ZERO()
{
return Duration.ofMilliseconds(0);
}

/**
* This {@link Duration} expressed in number of days, rounded down. In other words: the
* total number of whole days that fit in this {@link Duration}. Not to be confused with
Expand Down

0 comments on commit 458fc5b

Please sign in to comment.