We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6065c5b commit d84a497Copy full SHA for d84a497
src/Workspace/Resources/parseTime.js
@@ -1,7 +1,7 @@
1
const { Workspace } = require('../index.js');
2
3
4
-Workspace.newF("parseTime", function(string) {
+function parseTime(string) {
5
if (typeof string != "string") {
6
return parseFloat(string);
7
}
@@ -16,4 +16,8 @@ Workspace.newF("parseTime", function(string) {
16
else if (thing == "w") { return parseFloat(t.join(""))*60*60*24*7; }
17
else if (thing == "y") { return parseFloat(t.join(""))*60*60*24*365; }
18
else { return parseFloat(string); }
19
-});
+}
20
+
21
22
+Workspace.newF("parseTime", parseTime);
23
+module.exports = parseTime;
0 commit comments