Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDDate.asDate()


    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.Date, array.get(0).getType());
    tempDate = (OSDDate)array.get(0);
    Utils.tryParseDate("2006-02-01T14:29:53Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());

    Assert.assertEquals(OSDType.Date, array.get(1).getType());
    tempDate = (OSDDate)array.get(1);
    Utils.tryParseDate("1999-01-01T00:00:00Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());
View Full Code Here


    Assert.assertEquals(testDate[0], tempDate.asDate());

    Assert.assertEquals(OSDType.Date, array.get(1).getType());
    tempDate = (OSDDate)array.get(1);
    Utils.tryParseDate("1999-01-01T00:00:00Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());

    Assert.assertEquals(OSDType.Date, array.get(2).getType());
    tempDate = (OSDDate)array.get(2);
    Assert.assertEquals(Utils.Epoch, tempDate.asDate());
  }
View Full Code Here

    Utils.tryParseDate("1999-01-01T00:00:00Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());

    Assert.assertEquals(OSDType.Date, array.get(2).getType());
    tempDate = (OSDDate)array.get(2);
    Assert.assertEquals(Utils.Epoch, tempDate.asDate());
  }

  /// <summary>
  /// Test that various Boolean representations are parsed correctly.
  /// </summary>
View Full Code Here

    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.Date, array.get(0).getType());
    tempDate = (OSDDate)array.get(0);
    Utils.tryParseDate("2006-02-01T14:29:53Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());

    Assert.assertEquals(OSDType.Date, array.get(1).getType());
    tempDate = (OSDDate)array.get(1);
    Utils.tryParseDate("1999-01-01T00:00:00Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());
View Full Code Here

    Assert.assertEquals(testDate[0], tempDate.asDate());

    Assert.assertEquals(OSDType.Date, array.get(1).getType());
    tempDate = (OSDDate)array.get(1);
    Utils.tryParseDate("1999-01-01T00:00:00Z", testDate);
    Assert.assertEquals(testDate[0], tempDate.asDate());

//    Assert.assertEquals(OSDType.Date, array.get(2).getType());
//    tempDate = (OSDDate)array.get(2);
//    Assert.assertEquals(Utils.Epoch, tempDate.asDate());
  }
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.