Package erjang

Examples of erjang.EInteger.longValue()


  @BIF
  static ENumber crc32(EObject num, EObject io_list) {
    EInteger init;
    long val;
    if (((init=num.testInteger()) == null)
        || (val = init.longValue()) != (val & 0xffffffffL)) {
      throw ERT.badarg(num, io_list);
    }
   
    CRC32 crc = new CRC32();
    try {
View Full Code Here


  {
    EInteger num = a1.testInteger();
    if (num == null) throw ERT.badarg(a1);
   
    Calendar out_date = GregorianCalendar.getInstance(UTC_TIME_ZONE);
    out_date.setTimeInMillis(num.longValue() * 1000L);
   
    ETuple3 date2 = new ETuple3();
    date2.set(1, ERT.box(out_date.get(Calendar.YEAR)));
    date2.set(2, ERT.box(out_date.get(Calendar.MONTH)-Calendar.JANUARY+1));
    date2.set(3, ERT.box(out_date.get(Calendar.DAY_OF_MONTH)));
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.