「App:Library:FabGL:Struct:DateTime」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
 
(同じ利用者による、間の2版が非表示)
1行目: 1行目:
== struct ==
+
== struct DateTime ==
Defines ---.
+
日付と時刻を表します。
 
{| class="wikitable"
 
{| class="wikitable"
|#include < >
+
|#include <[http://www.fabglib.org/_d_s3231_8h_source.html DS3231.h]>
 
|}
 
|}
 +
 +
== Public Member Functions ==
 +
{| class="wikitable"
 +
|time_t  [http://www.fabglib.org/structfabgl_1_1_date_time_ae255b9bee770d76a5cfae70591c922c3.html#ae255b9bee770d76a5cfae70591c922c3 timestamp] (int timezone)
 +
 +
Calculates Unix timestamp.
 +
|}
 +
  
 
== Public Attributes ==
 
== Public Attributes ==
 
{| class="wikitable"
 
{| class="wikitable"
|[[App:Library:FabGL:Struct:Bitmap|'''Bitmap''']]    [http://www.fabglib.org/structfabgl_1_1_cursor_ab90f53fbe007c65f80d83ece2352f49a.html#ab90f53fbe007c65f80d83ece2352f49a bitmap]
+
|int8_t  dayOfMonth
 
|-
 
|-
|int16_t    [http://www.fabglib.org/structfabgl_1_1_cursor_a0e4f59780867e7453248d317439cc16e.html#a0e4f59780867e7453248d317439cc16e hotspotX]
+
|int8_t  dayOfWeek
 
|-
 
|-
|int16_t     [http://www.fabglib.org/structfabgl_1_1_cursor_a068b9d6ed14249ac8d20123435be5356.html#a068b9d6ed14249ac8d20123435be5356 hotspotY]
+
|int8_t  hours
 +
|-
 +
|int8_t  minutes
 +
|-
 +
|int8_t  month
 +
|-
 +
|int8_t  seconds
 +
|-
 +
|int16_t   year
 
|}
 
|}
  
 
== Detailed Description ==
 
== Detailed Description ==
Defines a cursor.
+
日付と時刻を表します。
  
[http://www.fabglib.org/displaycontroller_8h_source.html#l00528 Definition at line 528 of file displaycontroller.h].
+
'''Examples:'''<blockquote>[http://www.fabglib.org/_s_s_d1306__o_l_e_d_2128x64_2_r_t_clock_2_r_t_clock_8ino-example.html#_a5 SSD1306_OLED/128x64/RTClock/RTClock.ino].</blockquote>[http://www.fabglib.org/_d_s3231_8h_source.html#l00058 Definition at line 58 of file DS3231.h].
 
----
 
----
 
The documentation for this struct was generated from the following file:
 
The documentation for this struct was generated from the following file:
#[http://www.fabglib.org/displaycontroller_8h_source.html displaycontroller.h]
+
 
 +
* [http://www.fabglib.org/_d_s3231_8h_source.html DS3231.h]
 +
* [http://www.fabglib.org/_d_s3231_8cpp_source.html DS3231.cpp]
 +
 
  
  
  
 
----[https://robot-jp.com/wiki/index.php/App:Library:FabGL:Class_List 戻る]
 
----[https://robot-jp.com/wiki/index.php/App:Library:FabGL:Class_List 戻る]

2022年3月23日 (水) 11:09時点における最新版

struct DateTime

日付と時刻を表します。

#include <DS3231.h>

Public Member Functions

time_t timestamp (int timezone)

Calculates Unix timestamp.


Public Attributes

int8_t dayOfMonth
int8_t dayOfWeek
int8_t hours
int8_t minutes
int8_t month
int8_t seconds
int16_t year

Detailed Description

日付と時刻を表します。

Examples:

SSD1306_OLED/128x64/RTClock/RTClock.ino.

Definition at line 58 of file DS3231.h.


The documentation for this struct was generated from the following file:




戻る