mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Time diff: Parse numbers as seconds
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1394 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
1bbe1ee8da
commit
442e54ad6b
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public class Util
|
||||||
+ "(?:([0-9]+)\\s*d[a-z]*[,\\s]*)?"
|
+ "(?:([0-9]+)\\s*d[a-z]*[,\\s]*)?"
|
||||||
+ "(?:([0-9]+)\\s*h[a-z]*[,\\s]*)?"
|
+ "(?:([0-9]+)\\s*h[a-z]*[,\\s]*)?"
|
||||||
+ "(?:([0-9]+)\\s*m[a-z]*[,\\s]*)?"
|
+ "(?:([0-9]+)\\s*m[a-z]*[,\\s]*)?"
|
||||||
+ "(?:([0-9]+)\\s*s[a-z]*)?", Pattern.CASE_INSENSITIVE);
|
+ "(?:([0-9]+)\\s*(?:s[a-z]*)?)?", Pattern.CASE_INSENSITIVE);
|
||||||
|
|
||||||
public static long parseDateDiff(String time, boolean future) throws Exception
|
public static long parseDateDiff(String time, boolean future) throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue