Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

傳回 Variant (Integer),指定 0 到 59 (含) 之間的整數,代表小時的分鐘。

語法

分鐘 ( 時間)

所需的 時間引數 可以是任何 Variant、 數值運算式、 字串運算式,或可代表時間的任何組合。 如果time包含 Null,會返回 Null。

查詢範例

運算式

結果

SELECT Minute ([DateTime]) AS MinuteValue FROM ProductSales;

會返回 "DateTime" 欄位的 "Minute" 值,而不顯示任何其他資訊,並顯示在 MinuteValue 欄中。

VBA 範例

附註: 下列範例示範如何在 Visual Basic for Applications (VBA) 模組中使用此函數。 如需使用 VBA 的詳細資訊,請在 [搜尋] 旁的下拉式清單中選取 [開發人員參考],並在 [搜尋] 方塊中輸入一個或多個字詞。

此範例使用 Minute 函數,從指定的時間取得小時分鐘數。 在開發環境中,時間文字會使用程式碼的地區設定以簡短時間格式顯示。

Dim MyTime, MyMinute
MyTime = #4:35:17 PM# ' Assign a time.
MyMinute = Minute(MyTime) ' MyMinute contains 35.

選擇正確的日期函數

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?

Thank you for your feedback!

×