Package org.haystack.tagval

Examples of org.haystack.tagval.HDateTime.millis()


            if (ts != range.start) {
                values[0] = val;
                values[1] = ts;
                writer.writeRow(cols, row, count++);
            }
            ts = HDateTime.make(ts.millis() + 15 * 60 * 1000);
        }
        //System.out.println(count);
    }

    @Override
View Full Code Here


        verifyEq(ts.date.toString(), "2011-06-06");
        verifyEq(ts.time.toString(), "12:26:58.069");
        verifyEq(ts.tzOffset, -4 * 60 * 60);
        verifyEq(ts.tz.name, "New_York");
        verifyEq(ts.tz.java.getID(), "America/New_York");
        verifyEq(ts.millis(), 1307377618069L);

        // convert back to millis
        ts = HDateTime.make(ts.date, ts.time, ts.tz, ts.tzOffset);
        verifyEq(ts.millis(), 1307377618069L);

View Full Code Here

        verifyEq(ts.tz.java.getID(), "America/New_York");
        verifyEq(ts.millis(), 1307377618069L);

        // convert back to millis
        ts = HDateTime.make(ts.date, ts.time, ts.tz, ts.tzOffset);
        verifyEq(ts.millis(), 1307377618069L);

        // different timezones
        ts = HDateTime.make(949478640000L, HTimeZone.make("New_York"));
        verifyZinc(ts, "2000-02-02T03:04:00-05:00 New_York");
        ts = HDateTime.make(949478640000L, HTimeZone.make("UTC"));
View Full Code Here

        verifyEq(ts.time.hour, 0);
        verifyEq(ts.time.min, 0);
        verifyEq(ts.time.sec, 0);
        verifyEq(ts.toString(), str);
        verifyEq(ts, read(ts.toZinc()));
        verifyEq(ts.millis(), ((HDateTime) read(str)).millis());
    }

    public void testCoord() {
        verifyCoord(12, 34, "C(12.0,34.0)");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.