com.datastax.driver.core.LocalDate.getCalendar()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(115)

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

LocalDate.getCalendar介绍

暂无

代码示例

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Returns the month.
 *
 * @return the month. It is 1-based, e.g. 1 for January.
 */
public int getMonth() {
 return getCalendar().get(Calendar.MONTH) + 1;
}

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Returns the day in the month.
 *
 * @return the day in the month.
 */
public int getDay() {
 return getCalendar().get(Calendar.DAY_OF_MONTH);
}

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Returns the year.
 *
 * @return the year.
 */
public int getYear() {
 GregorianCalendar c = getCalendar();
 int year = c.get(Calendar.YEAR);
 if (c.get(Calendar.ERA) == GregorianCalendar.BC) year = -year + 1;
 return year;
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Returns the month.
 *
 * @return the month. It is 1-based, e.g. 1 for January.
 */
public int getMonth() {
  return getCalendar().get(Calendar.MONTH) + 1;
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

/**
 * Returns the month.
 *
 * @return the month. It is 1-based, e.g. 1 for January.
 */
public int getMonth() {
  return getCalendar().get(Calendar.MONTH) + 1;
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Returns the day in the month.
 *
 * @return the day in the month.
 */
public int getDay() {
  return getCalendar().get(Calendar.DAY_OF_MONTH);
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

/**
 * Returns the day in the month.
 *
 * @return the day in the month.
 */
public int getDay() {
  return getCalendar().get(Calendar.DAY_OF_MONTH);
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Returns the month.
 *
 * @return the month. It is 1-based, e.g. 1 for January.
 */
public int getMonth() {
  return getCalendar().get(Calendar.MONTH) + 1;
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Returns the day in the month.
 *
 * @return the day in the month.
 */
public int getDay() {
  return getCalendar().get(Calendar.DAY_OF_MONTH);
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

/**
 * Returns the year.
 *
 * @return the year.
 */
public int getYear() {
  GregorianCalendar c = getCalendar();
  int year = c.get(Calendar.YEAR);
  if (c.get(Calendar.ERA) == GregorianCalendar.BC)
    year = -year + 1;
  return year;
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Returns the year.
 *
 * @return the year.
 */
public int getYear() {
  GregorianCalendar c = getCalendar();
  int year = c.get(Calendar.YEAR);
  if (c.get(Calendar.ERA) == GregorianCalendar.BC)
    year = -year + 1;
  return year;
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Returns the year.
 *
 * @return the year.
 */
public int getYear() {
  GregorianCalendar c = getCalendar();
  int year = c.get(Calendar.YEAR);
  if (c.get(Calendar.ERA) == GregorianCalendar.BC)
    year = -year + 1;
  return year;
}

相关文章