The invention relates to the field of electronic product production testing, and particularly relates to a dual-mode time service machine. The time service machine comprises a Beidou 2nd generation /GPS dual-mode receiver module, a power supply module, a counting module, a CPU control module and an output module. According to the invention, satellite signals are received by using a Beidou 2nd generation/GPS dual-mode receiver, dual-channel running of a Beidou 2nd satellite and a GPS satellite is ensured, the stability of a signal source is ensured, the counting module selects a constant temperature crystal oscillator module, a Beidou 1pps random error mathematic model is built, and a Beidou 1pps random error is corrected online, so that a random error of Beidou second pulse signals can be effectively eliminated, and the time precision is improved. Meanwhile, the power supply module of the dual-mode time service machine utilizes a photovoltaic effect of solar cells, thereby achieving effects of energy conservation, stable power supply and convenient installation.