• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Organisationsmenü öffnen Organisationsmenü schließen
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Embedded Systems Software
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2025/26
      • Systemprogrammierung 2
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
      • Projekt angewandte Systemsoftwaretechnik
      • Aktuelle Entwicklung in Verteilten und Objektorientierten Betriebssystemen (für Bachelor-/Masterarbeit)
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssysteme

    Aufgabe 7: Anwendung

    Public Member Functions | Public Attributes | Static Public Attributes | List of all members
    DateTime Struct Reference

    Date and Time. More...

    #include <object/time.h>

    Public Member Functions

     DateTime ()
     Default constructor.
     
     DateTime (uint32_t epoch)
     Construct from a timestamp (Unix epoch time)
     
    uint32_t toTimestamp () const
     Convert to Unix epoch time. More...
     

    Public Attributes

    uint8_t second
     Second (0 - 59)
     
    uint8_t minute
     Minute (0 - 59)
     
    uint8_t hour
     Hour (0 - 23)
     
    uint8_t weekday
     Weekday (1 (Sun) - 7 (Sat))
     
    uint8_t day
     Day of Month (1 - 31)
     
    uint8_t month
     Month (1 - 12)
     
    uint16_t year
     Year (0 (2000) - 99 (2099))
     

    Static Public Attributes

    static const char *const weekdays [8]
     Name of weekdays. More...
     
    static const char *const months [13]
     Name of months. More...
     

    Detailed Description

    Date and Time.

    Note
    only Dates between 1 January 2000 and 31 December 2099 are supported

    Member Function Documentation

    uint32_t DateTime::toTimestamp ( ) const

    Convert to Unix epoch time.

    Returns
    Seconds since 1 January 1970

    Member Data Documentation

    const char *const DateTime::weekdays
    static
    Initial value:
    =
    { nullptr, "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }

    Name of weekdays.

    const char *const DateTime::months
    static
    Initial value:
    =
    { nullptr, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec" }

    Name of months.


    The documentation for this struct was generated from the following files:
    • object/time.h
    • object/time.cc
    Friedrich-Alexander-Universität
    Erlangen-Nürnberg

    Schlossplatz 4
    91054 Erlangen
    • Impressum
    • Datenschutz
    • Barrierefreiheit
    • Facebook
    • RSS Feed
    • Xing
    Nach oben