文檔
聯絡我們
-
學生
-
老師
-
編程
-
-
-
-
- 將文字轉換為 DateTimeOffset 格式
- 以不同單位創建 DateTimeOffset
- 以 Unix 時間創建 DateTimeOffset
- 使用當前時間創建DateTimeOffset
- 將 DateTimeOffset 與新的協調世界時偏移量合併
- 設定協調世界時偏移量
- 將 DateTimeOffset 變更成字串格式
- 轉換DateTimeOffset為字串
- 將間距加到dateTimeOffset
- 計算兩個DateTimeOffsets之間的間距
- 檢查兩個DateTimeOffsets是否相同
- 以毫秒顯示DateTimeOffset
- 以其他格式顯示時間
- 檢查DateTimeOffset是否在正確的數據類型
-
Print
以百分比設定長度
創建長度百分之
{"blocks":"0 "}
這積木是用作設定不同造型的寬度或高度的百分比。可以和其他造型積木合併使用。
參數:顯示設定:數字(預設:0)
輸出: 長度
示例代碼:
{"blocks":"mainLayout mainScreen firstChildLayout secondChildLayout mainLayout 0 mainScreen 0 Main mainLayout firstChildLayout 0 secondChildLayout 0 FlexShorthand.Auto mainLayout firstChildLayout 100 firstChildLayout 255 255 0 secondChildLayout 50 secondChildLayout 0 255 0 mainLayout firstChildLayout mainLayout secondChildLayout "}
輸出結果: