GithubHelp home page GithubHelp logo

sadespresso / moment_dart Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 1.0 424 KB

Moment converts Dart DateTime object to human-readable text. And many more benefits

License: MIT License

Dart 100.00%
date datetime time calendar dart dart-package momentjs

moment_dart's Introduction

moment_dart's People

Contributors

allcontributors[bot] avatar sadespresso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

prasant10050

moment_dart's Issues

0 hours in en_US localization

Hi!

When using the default en_US localization, the noon time is displayed like this: Today at 0:08 PM. From customers input, I understand that the american way is to display it as 12:08 PM - not zero.
The format tokens section example on the main page actually shows no zero:
h 1 2 ... 11 12
Is current behavior correct? How to achieve this using default localization?
Thanks!
Maria

[Enhancement] Global localization

Hello,
Thanks for this package, it's great!

It would be nice to be able to define a localization globally. A syntax like

Moment.setGlobalLocalization(Locale());

Thank you.

Update README.md

Update code and examples README.md according to latest version.

weekDaysNamesShort in custom localization

Hi,

How can I set custom weekDaysNamesShort like in monthNamesShort in custom localization?
For example, in Hebrew it is not good to display the first 3 chars of the full weekday name.
Thanks

Localisation can be singletons

As there's no use for having multiple instances of same localisation class, it's better to follow singleton pattern in all localisations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.