Small program written in easy language--Electronic watch

Source: Internet
Author: User
Tags american time

Write software assessment when the thought of easy language, this I high school to write small program play programming software, just made up a small program to share, electronic watch.

, this is an EXE file that can be opened directly.

After opening the title, I set the time to be divided into Chinese and American time to choose from.

China time display and US time display, respectively.

The time can be changed dynamically, using the time period. When China time is displayed, shielding the US time period, when the United States time display, shielding China cycle, so as not to show confusion.

Also attached this small software (personal Web site, rest assured access, you can listen to music O (∩_∩) o): http://hgcrown.amnuo.com/

Another easy language source code:

. Version 2
. Support for the library Internet

. assembly Window assembly _ Startup Window

. subroutine _ button 1_ clicked

Clock 1. Clock period = 1000
Clock 2. Clock period = 0

. Subroutine _ Clock 1_ cycle Event
. Local Variables Web page data, text type
. local variable data front end, integer type
Local variable fetch time, text type
. Local variables remaining time, text type
. local variable time, datetime type
The local variable increases the time, date and time type.

Clock 1. Clock period = 1000
Web page data = To text (http Read file ("http://open.baidu.com/special/time/"))
Data front end = Look for text (Web page data, "Window.baidu_time (",, false) + 18
Remove time = Take text middle (Web page data, data front end, 10)
Time = increment/decrement time ([January 1, 1970 8 o'clock], #秒, to Integer (Take time))
Tab 1. title = To text (time)

. subroutine _ button 2_ clicked

Clock 2. Clock period = 1000
Clock 1. Clock period = 0

. Subroutine _ Clock 2_ cycle Event
. Local Variables Web page data, text type
. local variable data front end, integer type
Local variable fetch time, text type
. Local variables remaining time, text type
. local variable time, datetime type
The local variable increases the time, date and time type.

Web page data = To text (http Read file ("http://open.baidu.com/special/time/"))
Data front end = Look for text (Web page data, "Window.baidu_time (",, false) + 18
Remove time = Take text middle (Web page data, data front end, 10)
Time = increment/decrement time ([December 31, 1969 19 o'clock], #秒, to Integer (Take time))
Tab 1. title = To text (time)

Small program written in easy language--electronic watch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.