Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/intl/components/src/calendar/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 854 B image not shown  

Quelle  ISODate.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef intl_components_calendar_ISODate_h_
#define intl_components_calendar_ISODate_h_

#include "mozilla/intl/calendar/MonthCode.h"

#include <stdint.h>

namespace mozilla::intl::calendar {

struct ISODate final {
  int32_t year = 0;
  int32_t month = 0;
  int32_t day = 0;
};

inline int32_t FloorDiv(int32_t dividend, int32_t divisor) {
  int32_t quotient = dividend / divisor;
  int32_t remainder = dividend % divisor;
  if (remainder < 0) {
    quotient -= 1;
  }
  return quotient;
}

/**
 * Return the day relative to the Unix epoch, January 1 1970.
 */

int32_t MakeDay(const ISODate& date);

}  // namespace mozilla::intl::calendar

#endif

Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.