mt / oadate-java Goto Github PK
View Code? Open in Web Editor NEWA java utility to parse Microsoft's Ole Automation Date format
License: zlib License
A java utility to parse Microsoft's Ole Automation Date format
License: zlib License
I added the following test to OleAutomationDateUtilTest
assertThat("Day 2015"
, oadu.fromOADate(42095.99407407407, GMT)
, equalTo(d("Apr 1, 2015 11:51:27 pm GMT")));
and I get the following error
java.lang.AssertionError: Day 2015
Expected: <Thu Apr 02 01:51:27 CEST 2015>
but: was <Thu Apr 02 01:51:27 CEST 2015>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
The dates look the same but they differ in their milliseconds.
I wrote my own method similar to fromOADate(double d, TimeZone tz) and pull out days, hours, minutes and seconds one by one out of the fraction ignoring millis and anything smaller (can't share it, sorry, but you get the idea).
It would be interesting if you can reproduce the error by copying the lines above into your test.
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.