Skip to main content

HMS2S

·

FX-603P

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.

HMS2S3.pt #

All Program List

P1

1 M+09 "I=[AR09]" PAUSE
PRT SEXE
00 Min04 "hh:" HLT
Min01 M+04 SDMS PAUSE
"mm:" HLT
Min02 / 60 = Min00 M+04 MR00 SDMS PAUSE
"ss:" HLT
Min03 / 3600 = Min00 M+04 MR04 SDMS PAUSE
PRT SEXE
MR03 + 60 * MR02 + 3600 * MR01 = Min00 "T= # s" HLT
PRT SEXE
" " PRT SEXE


P0

HLT
DMS HLT
DMS * 3600 = + HLT
=

END
Download HMS2S3.pt

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