fenris-date-tool
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "fenris-date-tool", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Date utility to make dates suck less when they aren't saved in UTC", | ||
@@ -5,0 +5,0 @@ "authors": [ |
# fenris-date-tool | ||
Date tool to convert to and from Locale times to UTC | ||
# General usage | ||
Currently only works with Danish time. | ||
```JavaScript | ||
import { FDTLocaleToUtc } from 'fenris-date-tool'; | ||
export const example = (inputDate: string): string => { | ||
const utcDateString: string = FDTLocaleToUtc(item.DateTime, 'Europe/Copenhagen'); | ||
return utcDateString | ||
}; | ||
``` | ||
# How to publish | ||
```Console | ||
@@ -20,8 +28,11 @@ npm run clean | ||
# How it was build | ||
This is created and maintained with with rollup, typedocs (in theory), @microsoft/api-extractor | ||
# How it was build | ||
This is created and maintained with with rollup, typedocs (in theory), @microsoft/api-extractor | ||
start: | ||
```Console | ||
@@ -41,2 +52,3 @@ npm install --save-dev \ | ||
The scripts setup should look like: | ||
```JSON | ||
@@ -56,2 +68,3 @@ "scripts": { | ||
The rollup config should looklike | ||
```JavaScript | ||
@@ -79,2 +92,3 @@ import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
The TSconfig should look like: | ||
```JSON | ||
@@ -95,2 +109,2 @@ { | ||
} | ||
``` | ||
``` |
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
10635
106