Skip to content

slavap/gwt-joda-java-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java8 java.time emulation for GWT.

How to use:

  1. You have to load js-joda and js-joda-timezone in your index.html (or any other way).
<script src="js/js-joda.min.js"></script>
<script src="js/js-joda-timezone.min.js"></script>

Also it's possible to use the same IANA timezone database for js-joda-timezone and moment.tz

<script src="js/moment.min.js"></script>
<script src="js/moment-timezone.min.js"></script>
<script type="text/javascript">moment.tz.load(JSJoda.ZoneRulesProvider.getTzdbData());</script>
  1. Add dependency to pom.xml:
<dependency>
  <groupId>com.vx.jtime</groupId>
  <artifactId>gwt-joda-java-time</artifactId>
  <version>0.0.1</version>
  <classifier>sources</classifier>
  <scope>provided</scope>
</dependency>
  1. Add to yourProject.gwt.xml:
<inherits name='com.vx.jtime.JTime' />

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published