gpt4 book ai didi

org.joda.time.chrono.ZonedChronology.getBase()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 23:58:49 26 4
gpt4 key购买 nike

本文整理了Java中org.joda.time.chrono.ZonedChronology.getBase()方法的一些代码示例,展示了ZonedChronology.getBase()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZonedChronology.getBase()方法的具体详情如下:
包路径:org.joda.time.chrono.ZonedChronology
类名称:ZonedChronology
方法名:getBase

ZonedChronology.getBase介绍

暂无

代码示例

代码示例来源:origin: joda-time/joda-time

public Chronology withUTC() {
  return getBase();
}

代码示例来源:origin: JodaOrg/joda-time

public Chronology withUTC() {
  return getBase();
}

代码示例来源:origin: joda-time/joda-time

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

代码示例来源:origin: JodaOrg/joda-time

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

代码示例来源:origin: joda-time/joda-time

/**
 * A suitable hashcode for the chronology.
 * 
 * @return the hashcode
 * @since 1.4
 */
public int hashCode() {
  return 326565 + getZone().hashCode() * 11 + getBase().hashCode() * 7;
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * A suitable hashcode for the chronology.
 * 
 * @return the hashcode
 * @since 1.4
 */
public int hashCode() {
  return 326565 + getZone().hashCode() * 11 + getBase().hashCode() * 7;
}

代码示例来源:origin: joda-time/joda-time

public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth,
               int hourOfDay, int minuteOfHour,
               int secondOfMinute, int millisOfSecond)
  throws IllegalArgumentException
{
  return localToUTC(getBase().getDateTimeMillis
           (year, monthOfYear, dayOfMonth, 
            hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond));
}

代码示例来源:origin: joda-time/joda-time

/**
 * A debugging string for the chronology.
 * 
 * @return the debugging string
 */
public String toString() {
  return "ZonedChronology[" + getBase() + ", " + getZone().getID() + ']';
}

代码示例来源:origin: joda-time/joda-time

/**
 * A zoned chronology is only equal to a zoned chronology with the
 * same base chronology and zone.
 * 
 * @param obj  the object to compare to
 * @return true if equal
 * @since 1.4
 */
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj instanceof ZonedChronology == false) {
    return false;
  }
  ZonedChronology chrono = (ZonedChronology) obj;
  return
    getBase().equals(chrono.getBase()) &&
    getZone().equals(chrono.getZone());
}

代码示例来源:origin: JodaOrg/joda-time

public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth,
               int hourOfDay, int minuteOfHour,
               int secondOfMinute, int millisOfSecond)
  throws IllegalArgumentException
{
  return localToUTC(getBase().getDateTimeMillis
           (year, monthOfYear, dayOfMonth, 
            hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond));
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * A debugging string for the chronology.
 * 
 * @return the debugging string
 */
public String toString() {
  return "ZonedChronology[" + getBase() + ", " + getZone().getID() + ']';
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * A zoned chronology is only equal to a zoned chronology with the
 * same base chronology and zone.
 * 
 * @param obj  the object to compare to
 * @return true if equal
 * @since 1.4
 */
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj instanceof ZonedChronology == false) {
    return false;
  }
  ZonedChronology chrono = (ZonedChronology) obj;
  return
    getBase().equals(chrono.getBase()) &&
    getZone().equals(chrono.getZone());
}

代码示例来源:origin: joda-time/joda-time

public long getDateTimeMillis(long instant,
               int hourOfDay, int minuteOfHour,
               int secondOfMinute, int millisOfSecond)
  throws IllegalArgumentException
{
  return localToUTC(getBase().getDateTimeMillis
           (instant + getZone().getOffset(instant),
            hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond));
}

代码示例来源:origin: JodaOrg/joda-time

public long getDateTimeMillis(long instant,
               int hourOfDay, int minuteOfHour,
               int secondOfMinute, int millisOfSecond)
  throws IllegalArgumentException
{
  return localToUTC(getBase().getDateTimeMillis
           (instant + getZone().getOffset(instant),
            hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond));
}

代码示例来源:origin: camunda/camunda-bpm-platform

public Chronology withUTC() {
  return getBase();
}

代码示例来源:origin: camunda/camunda-bpm-platform

public Chronology withZone(DateTimeZone zone) {
  if (zone == null) {
    zone = DateTimeZone.getDefault();
  }
  if (zone == getParam()) {
    return this;
  }
  if (zone == DateTimeZone.UTC) {
    return getBase();
  }
  return new ZonedChronology(getBase(), zone);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * A suitable hashcode for the chronology.
 * 
 * @return the hashcode
 * @since 1.4
 */
public int hashCode() {
  return 326565 + getZone().hashCode() * 11 + getBase().hashCode() * 7;
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * A debugging string for the chronology.
 * 
 * @return the debugging string
 */
public String toString() {
  return "ZonedChronology[" + getBase() + ", " + getZone().getID() + ']';
}

代码示例来源:origin: camunda/camunda-bpm-platform

public long getDateTimeMillis(int year, int monthOfYear, int dayOfMonth,
               int hourOfDay, int minuteOfHour,
               int secondOfMinute, int millisOfSecond)
  throws IllegalArgumentException
{
  return localToUTC(getBase().getDateTimeMillis
           (year, monthOfYear, dayOfMonth, 
            hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond));
}

代码示例来源:origin: camunda/camunda-bpm-platform

public long getDateTimeMillis(long instant,
               int hourOfDay, int minuteOfHour,
               int secondOfMinute, int millisOfSecond)
  throws IllegalArgumentException
{
  return localToUTC(getBase().getDateTimeMillis
           (instant + getZone().getOffset(instant),
            hourOfDay, minuteOfHour, secondOfMinute, millisOfSecond));
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com