zapier / intl-dateformat Goto Github PK
View Code? Open in Web Editor NEWFormat a date using Intl.DateTimeFormat goodness.
License: MIT License
Format a date using Intl.DateTimeFormat goodness.
License: MIT License
Hello,
I'm trying to consume intl-dateformat from a TypeScript project. When I compile the project with tsc
, I see an error:
$ tsc --noEmit --pretty
node_modules/intl-dateformat/lib/index.d.ts:15:39 - error TS2307: Cannot find module './types'.
15 export declare const _default: import("./types").FormatFunction;
~~~~~~~~~
Found 1 error.
I had to add "skipLibCheck": true
to my project tsconfig.json
to workaround this.
I noticed that in the build process for intl-dateformat, the following warning is logged from dts-bundle-generator
:
BEWARE: The generated file could not be properly checked due enabled "skipLibCheck" compiler option
Perhaps relevant?
How can I add a literal string to the format string?
For example: dddd, DD [de] MMMM [ร s] HH:mm
The parts with brackets are literal, doesn't have to be converted.
Thanks!
How can i test it without installation using jsbin or etc ?
Need to set up Travis with Browserstack if possible to test across several browsers.
๐
Apparently using the 'A' for day period is not working, it will display undefined.
Repruduced probelem:
https://codesandbox.io/s/relaxed-raman-ze0qk
Thanks,
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.