leodupont / flow.launcher.plugin.datediff Goto Github PK
View Code? Open in Web Editor NEWA plugin for Flow Launcher for Windows to compute difference between two dates
A plugin for Flow Launcher for Windows to compute difference between two dates
I got an error after typing: dd 1-2-2020 1-3-2020 day
Message:
Please open new issue in: https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff/issues/new
Flow Launcher version: 1.11.0
OS Version: Microsoft Windows NT 10.0.22621.0
IntPtr Length: 8
x64: True
Python Path: C:\Users\dawid\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 01/19/2023 16:33:58
Exception:
DateDiff Exception:
Websites: https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff
Author: LeoDupont
Version: 1.1.0
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^
TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
Node.js v18.12.1
---> System.IO.InvalidDataException: file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^
TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
Node.js v18.12.1
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 287
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 292
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 307
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 821
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 785
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Hey,
is it possible to add Timezone calculation? like PST to CEST and so on.
When no result (or always?): show a "Help" result with usage and link to the README when clicked.
Flow Launcher version: 1.16.1
OS Version: 22621.2283
IntPtr Length: 8
x64: True
Python Path: C:\Users\chiar\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 10/10/2023 19:38:44
Exception:
DateDiff Exception:
Websites: https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff
Author: LeoDupont
Version: 1.1.0
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^
TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)
Node.js v20.8.0
---> System.IO.InvalidDataException: file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^
TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)
Node.js v20.8.0
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 194
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 216
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 216
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass139_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 849
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults(Boolean isReQuery) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 850
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Allow to add or subtract integers from a date, with parameters in the form:
dd <fromDate> <operation>
Examples:
dd today +6d
dd 20/4 -1y3m
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.