Hour Function

TimeSerial λ˜λŠ” TimeValue ν•¨μˆ˜λ₯Ό μ‚¬μš©ν•˜μ—¬ μƒμ„±ν•œ μ‹œκ°„ κ°’μ—μ„œ μ‹œκ°„μ„ κ΅¬ν•©λ‹ˆλ‹€.

ꡬ문:


Hour (Number)

λ°˜ν™˜ κ°’:

Integer

맀개 λ³€μˆ˜:

Number: μ‹œκ°„ 값을 κ΅¬ν•˜λŠ” 데 μ‚¬μš©λ˜λŠ” 연속 μ‹œκ°„ 값을 ν¬ν•¨ν•˜λŠ” 숫자 μ‹μž…λ‹ˆλ‹€.

이 ν•¨μˆ˜λŠ” TimeSerial ν•¨μˆ˜μ™€ λ°˜λŒ€λ˜λŠ” κ²ƒμœΌλ‘œ, TimeSerial λ˜λŠ” TimeValue ν•¨μˆ˜λ₯Ό μ‚¬μš©ν•˜μ—¬ μƒμ„±ν•œ μ‹œκ°„ κ°’μ˜ μ‹œκ°„μ„ λ‚˜νƒ€λ‚΄λŠ” μ •μˆ˜ 값을 κ΅¬ν•©λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄,

Print Hour(TimeSerial(12,30,41))

κ°’ 12λ₯Ό κ΅¬ν•©λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

예:


          Sub ExampleHour
          Print "The current hour is " & Hour( Now )
          End Sub
      

Please support us!