Skip to main content

HMS2S

·

fx-602p
fx-602p

Converts durations from the format hh:mm:ss into seconds. #

The program is applied on calculating the durations of numbered video files. This means before calculating each file gets a running number to denote its order in a play list.

Example output

I= 1
2°34'6”
T= 9246 S
I= 2
1°55'55”
T= 6955 S

Comfortable version

M09 is incremented every time P1 is run, there for a support request Hours, minutes and seconds are entered separately.

HMS2S2.pf #

PROGRAM LIST
File : HMS2S2

*** P1
1 M+09 “I= AR09 ”
PAUSE SAVE invEXE 00
Min04 “hh:” HLT
Min01 M+04 °'”←
PAUSE “mm:” HLT
Min02 ÷ 60 = Min00
M+04 MR00 °'”← PAUSE
“ss:” HLT Min03 ÷ 36
00 = Min00 M+04 MR04
°'”← PAUSE SAVE
invEXE MR03 + 60 ×
MR02 + 3600 × MR01 =
Min00 “T= # s” HLT
SAVE invEXE “ ” SAVE
invEXE
       ···91 steps

*** P0
HLT °'” HLT °'” × 36
00 = + HLT =
       ···14 steps
Download HMS2S2.pf

Short version

Hours, minutes and seconds are entered separately.

In direct mode:

2 °'” 34 °'” x 3600 = + 6 =

The program yet doesn’t work in the simulator:

HLT °'” HLT °'” x 3600 = + HLT =

Long version

Durations are entered as single values 2.3406 and 1.5555

0 Min02 HLT Min01 INT × 3600 = M+02
MR01 FRAC × 100 = Min01 INT × 60 = M+02
MR01 FRAC × 100 = M+02 MR02

For comparison

Much shorter is this HP-42s version:

STOP →HR 3600 x ENTER

Author #

Michael Malien, Facebook