CN110225414A - Television set and its time display method, time display apparatus and readable storage medium storing program for executing - Google Patents
Television set and its time display method, time display apparatus and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110225414A CN110225414A CN201910600659.3A CN201910600659A CN110225414A CN 110225414 A CN110225414 A CN 110225414A CN 201910600659 A CN201910600659 A CN 201910600659A CN 110225414 A CN110225414 A CN 110225414A
- Authority
- CN
- China
- Prior art keywords
- days
- persian
- calendar
- month
- time display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
Abstract
The invention discloses a kind of time display methods, this method comprises: obtaining the current temporal information of television system;Judge whether the television system is in preset time display pattern;If so, being generated between corresponding Persian lasts according to the temporal information;Between showing that the Persian lasts.The invention also discloses a kind of time display apparatus, television set and readable storage medium storing program for executing.It is contemplated that the calendar habit that television set is suitable for Special section realizes calendar switching display, the convenience for the regional TV user gone through using Persian is improved.
Description
Technical field
The present invention relates to TV technology more particularly to time display method, time display apparatus, television sets and readable
Storage medium.
Background technique
With the development of economy, the television set place different in the whole world obtains widely available.However, current TV is flat
The Gregorian calendar time may only be shown on platform, and gets used to Persian calendar guiding life and life in the regional people such as Iran, Afghanistan
It produces, it can not be extremely inconvenient from the temporal information needed for intuitively obtaining it in existing TV.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of time display methods, it is intended to television set be made to be suitable for Special section
Calendar habit realizes calendar switching display, improves the convenience for the regional TV user gone through using Persian.
To achieve the above object, the present invention provides a kind of time display method, and the time display method includes following step
It is rapid:
Obtain the current temporal information of television system;
Judge whether the television system is in preset time display pattern;
If so, being generated between corresponding Persian lasts according to the temporal information;
Between showing that the Persian lasts.
It optionally, include Persian part over the years between the Persian lasts, it is described that corresponding wave is generated according to the temporal information
The step of this is lasted include:
Extract the date information in the temporal information;
Persian part over the years is determined according to the date information and preset reference time.
Optionally, the date information includes the current calendar year information of the television system, Gregorian calendar month information and the Gregorian calendar
Day information, described the step of determining Persian part over the years according to the date information and preset reference time include:
Corresponding benchmark number of days is determined according to the calendar year information, according to the calendar year information and the preset reference
Time determined for the first time;
According to the Gregorian calendar month information and the calendar day information, current date is counted in the current calendar year to initial day
Total number of days;
Time adjusting parameter is determined according to total number of days and the benchmark number of days;
Persian part over the years is determined according to first time and the time adjusting parameter.
It optionally, further include Persian calendar month and the Persian calendar month in one's duty day ordinal number between the Persian lasts, it is described
In generating corresponding Persian according to the temporal information the step of lasting, according to first time and time adjustment
Parameter determines after the part over the years of the Persian, further includes:
Determine the first difference between total number of days and the benchmark number of days;
Judge whether first difference is greater than or equal to 0;
If first difference more than or equal to 0, obtains in the part over the years of the Persian, each default month is corresponding pre-
If number of days;
According to first difference and each preset number of days, the Persian calendar month and the day ordinal number are determined.
Optionally, described according to first difference and each preset number of days, determine Persian calendar month and described
The step of day ordinal number includes:
Each preset number of days is ranked up according to the chronological order in each default month, forms default team
Column;
1 is set by the first design variables, sets first difference for the second design variables;
Precedence and the consistent preset number of days of the first design variables will be arranged in default queue as first object number of days;
Judge whether second design variables are greater than the first object number of days;
If second design variables are greater than the first object number of days, second design variables are updated to described
The difference of second design variables and the first object number of days, by first design variables be updated to first design variables with
1 sum;
Return execute it is described will be arranged in default queue precedence and the consistent preset number of days of the first design variables as
The step of first object number of days;
If second design variables be less than or equal to the first object number of days, using first design variables as
The Persian calendar month, using second design variables as the day ordinal number.
Optionally, it is described judge the step of whether first difference is greater than or equal to 0 after, further includes:
If first difference determines the current calendar year less than 0, according to the calendar year information;
Determine in each default month across the month of two calendar years be target month, wherein described two public affairs
Part over the years includes the current calendar year and its previous calendar year;
It determines that number of days of the target month in the current calendar year is the second target number of days, determines the target month
Number of days in the previous calendar year of the current calendar year is third target number of days;
Judge whether total number of days is less than or equal to the second target number of days;
If so, using the target month as the Persian calendar month, by total number of days and the third target day
The sum of number, as the day ordinal number;
If it is not, then obtaining the corresponding preset number of days of rear January in the target month as preset value;
Determine that the number of days of total number of days and the second target number of days is poor, as the second difference;
Quotient and the target month according to second difference divided by the preset value, determine the Persian calendar month
Part, using second difference divided by the remainder of the preset value as the day ordinal number.
Optionally, described the step of obtaining television system current temporal information, includes:
Real time monitoring inputs the code stream of the television system;
The temporal information is extracted in the code stream;And/or
It is described to judge that the step of whether television system is in preset time display pattern includes:
Read the default characteristic variable in the television system;
According to the default characteristic variable, judge whether the television system is in preset time display pattern.
In addition, to achieve the goals above, the application also proposes a kind of time display apparatus, the time display apparatus packet
It includes: memory, processor and being stored in the time showing program that can be run on the memory and on the processor, it is described
The step of as above described in any item time display methods are realized when time showing program is executed by the processor.
In addition, to achieve the goals above, the application also proposes that a kind of television set, the television set include as described above
Time display apparatus.
In addition, to achieve the goals above, the application also proposes a kind of readable storage medium storing program for executing, on the readable storage medium storing program for executing
It is stored with time showing program, as above described in any item time showings are realized when the time showing program is executed by processor
The step of method.
A kind of time display method that the embodiment of the present invention proposes, can be in preset time display pattern in television system
When, the current temporal information of television system is converted into Persian and goes through time showing, so that television set be made to be suitable for Special section
Calendar habit realizes calendar switching display, improves the convenience for the regional TV user gone through using Persian.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of one embodiment of time display apparatus of the present invention;
Fig. 2 is the flow diagram of time display method first embodiment of the present invention;
Fig. 3 is the refinement flow diagram of step S30 in Fig. 2;
Fig. 4 is the refinement flow diagram of step S32 in Fig. 3;
Fig. 5 is the flow diagram of time display method second embodiment of the present invention;
Fig. 6 is the refinement flow diagram of step S36 in Fig. 5.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: obtaining the current temporal information of television system;Judge the TV
Whether system is in preset time display pattern;If so, being generated between corresponding Persian lasts according to the temporal information;Display
Between the Persian lasts.
Since television set is only able to display the Gregorian calendar time in the prior art, to use Persian go through area TV user extremely not
Just.
The present invention provides above-mentioned solution, it is intended to which the calendar habit for making television set be suitable for Special section realizes calendar
Switching display, improves the convenience for the regional TV user gone through using Persian.
The present invention proposes a kind of time display apparatus, may be applicable to the image display for carrying out time showing, example
Such as television set.
In embodiments of the present invention, referring to Fig.1, time display apparatus includes: processor 1001, such as CPU, memory
1002 etc..Memory 1002 can be high speed RAM memory, be also possible to stable memory (non-volatile
), such as magnetic disk storage memory.Memory 1002 optionally can also be the storage dress independently of aforementioned processor 1001
It sets.
Time display apparatus specifically built-in can be installed in television set.It will be understood by those skilled in the art that being shown in Fig. 1
Apparatus structure not structure twin installation restriction, may include than illustrating more or fewer components, or the certain portions of combination
Part or different component layouts.
As shown in Figure 1, as may include time showing program in a kind of memory 1002 of readable storage medium storing program for executing.Scheming
In device shown in 1, processor 1001 is connect with memory 1002, can be used for calling the time stored in memory 1002 aobvious
Show program, and executes the correlation step operation of time display method in following embodiment.
The present invention also provides a kind of time display methods.
Referring to Fig. 2, time display method first embodiment of the present invention is proposed, the time display method includes:
Step S10 obtains the current temporal information of television system;
Here television system is specially the Android system for being installed on TV.Temporal information may particularly include Gregorian calendar calendar lattice
The date information (such as on March 5th, 2007) and time information (such as 13:54) of formula.
Specifically, step S10 includes: the code stream that real time monitoring inputs the television system, institute is extracted in the code stream
State temporal information.Code stream is specially the coded data of video image in the digital communications path for provide image.In coded data
The corresponding feature field of recognition time information, using data corresponding to feature field as above-mentioned temporal information.Wherein, in code stream
Temporal information is generally Gregorian calendar format.
Step S20, judges whether the television system is in preset time display pattern;
If so, thening follow the steps S30, step S40;If it is not, thening follow the steps S50.
Specifically, step 20 can include:
Step S21 reads the default characteristic variable in the television system;
Default characteristic variable can add in Android system in advance, for identification the current time showing mould of television system
Formula.Time showing mode may particularly include the time showing mode shown with the Gregorian calendar and be gone through the time showing mode of display with Persian
Deng.Wherein, preset time display pattern can be used as with the time showing mode that display is gone through in Persian.
Step S22 judges whether the television system is in preset time and shows mould according to the default characteristic variable
Formula.
When default characteristic variable is the first preset value (such as 1), it is believed that television system is in preset time display pattern;In advance
If characteristic variable is the second preset value (such as 0), it is believed that television system is not at preset time display pattern.Television system can
According to the control instruction that input by remote control device of the received user of institute, the specific variate-value of characteristic variable is preset in determination.
Step S30, between being lasted according to the corresponding Persian of temporal information generation;
It determines the preset rules converted between temporal information and Persian last, is converted temporal information according to preset rules
Between being lasted for Persian.It is lasted for example, the temporal information of Gregorian calendar calendar format is converted to and meets Persian of Persian clearly method format
Between.
Persian may particularly include Persian part over the years, Persian calendar month and Persian calendar month in one's duty day ordinal number etc. between lasting.Wave
This part over the years is the ordinal number of current year in the calendar of Persian, and the Persian calendar month are the sequence of the current month in the part over the years of current Persian
Number, day ordinal number are within the current Persian calendar month when light is this month which in one's duty day.
Step S40, between showing that the Persian lasts.
During between showing that Persian lasts, corresponding display format between acquisition Persian lasts is current in television system
Display interface in determine Persian last between corresponding display position, in identified display position according to display format to Persian
It is shown between lasting.Specifically, it is corresponding in Persian part over the years to obtain corresponding Arabic numerals according to Persian part over the years
Display position carries out time display, and corresponding month name can be obtained according to the Persian calendar month in the corresponding display of Persian calendar month
Position carries out month display, and corresponding Arabic numerals can be obtained according to day ordinal number in the corresponding display position of day ordinal number and carry out day
Ordinal number is shown.For example, temporal information be the Gregorian calendar on March 5th, 2007, obtained Persian between lasting middle Persian part over the years be 1385,
The Persian calendar month are Esfand, and day ordinal number is 14, then can be shown as between Persian lasts " 1385-Esfand-14 ".
Step S50 shows the temporal information in the form of Gregorian calendar calendar.
For example, temporal information is the Gregorian calendar on March 5th, 2007, temporal information can be shown as " 2007-3-5 ".
A kind of time display method that the embodiment of the present invention proposes, can be in preset time display pattern in television system
When, the current temporal information of television system is converted into Persian and goes through time showing, so that television set be made to be suitable for Special section
Calendar habit realizes calendar switching display, improves the convenience for the regional TV user gone through using Persian.
Specifically, in the first embodiment, the Persian last between include Persian part over the years, referring to Fig. 3, the step
S30 can include:
Step S31 extracts the date information in the temporal information;
Step S32 determines Persian part over the years according to the date information and preset reference time.
Temporal information can be Gregorian calendar calendar format, be also possible to the format of other calendars.The temporal information of different calendars
It is correspondingly arranged on the different preset reference times.By in date information year information with it is the preset reference time and/or poor, as
Persian part over the years.
Wherein, date information specifically includes the current calendar year information of television system, Gregorian calendar month information and calendar day information.
For example, temporal information is on May 31st, 2007, then " 2007 " are calendar year information, and " 5 " are Gregorian calendar month information, and " 31 " are the Gregorian calendar
Day information.Correspondingly, the preset reference time be 621, Persian part over the years be equal to 2007-621, i.e., 1386.
By the above-mentioned means, Persian part over the years can be rapidly converted into quickly by with the date of the calendars format such as Gregorian calendar.
Specifically, in the first embodiment, including: referring to Fig. 4, step S32
Step S321 determines corresponding benchmark number of days according to the calendar year information, according to the calendar year information and institute
Stating the preset reference time determined for the first time;
Wherein, it can judge whether the current calendar year is the leap year according to calendar year information, according to determining pair of judgement result
The benchmark number of days answered.For example, benchmark number of days is 81 when determining current calendar year for the leap year;Determining the current Gregorian calendar
When time is non-leap year, benchmark number of days is 80.Further, since the first day Spring Equinox for the Northern Hemisphere day in the calendar of Persian, corresponding
Gregorian calendar date be March 21, therefore can also according to determine result calculating benchmark number of days, previously according in the Gregorian calendar calendar non-leap year it is every
The number of days in a month, which successively combines, forms an array: { 31,28,31,30,31,30,31,31,30,31,30,31 }, wherein
When the current calendar year is the leap year, which can be updated by second number of array plus 1.It is obtained according to judgement result
Corresponding array is taken, by the first number number of days of January (Gregorian calendar), the second number (day in Gregorian calendar February in acquired array
Number) and 21 ((Gregorian calendar first day March to the Spring Equinox day number of days) sum as benchmark number of days.
First time was specially the difference of calendar year information Yu preset reference time, such as when calendar year information is 2007,
The corresponding preset reference time is 621, then the first time was 1386.
Step S322 is counted in the current calendar year according to the Gregorian calendar month information and the calendar day information and is worked as the day before yesterday
Total number of days of phase to initial day;
Specifically, obtain corresponding array according to the current calendar year, such as in the current calendar year to obtain the when non-leap year
One array { 31,28,31,30,31,30,31,31,30,31,30,31 } obtains the second number when the current calendar year is the leap year
Group { 31,29,31,30,31,30,31,31,30,31,30,31 }.According to the array of acquisition, Gregorian calendar month information and calendar day information
Calculate total number of days.Wherein, target value can be extracted in array according to Gregorian calendar month information, is obtained after such as subtracting 1 for Gregorian calendar month information
The required target number for extracting numerical value, will be arranged in front the numerical value of target number as target value in acquired array.Root
According to extracted target value and calendar day information and determining total number of days.For example, Gregorian calendar month information is 3, calendar day information is 5
When, the current calendar year 2007 be non-leap year when, by the first two numerical value in array (31,28) be used as target value, then total number of days=
31+28+5=64.
Step S323 determines time adjusting parameter according to total number of days and the benchmark number of days;
Judge whether total number of days is greater than or equal to benchmark number of days, if total number of days is greater than or equal to benchmark number of days, time tune
Whole parameter is 0, if total number of days is less than benchmark number of days, time adjusting parameter is 1.
Step S324 determines Persian part over the years according to first time and the time adjusting parameter.
Using the difference of the first time and time adjusting parameter as Persian part over the years.
For example, if Gregorian calendar month information is 3, calendar day information is 5, corresponding total number of days when calendar year information is 2007
It is 31+28+5=64 days, total number of days is less than benchmark number of days 80 days, then time adjusting parameter is 1, Persian part=1386-1=over the years
1385;If Gregorian calendar month information is 5, calendar day information is 21, and corresponding total number of days is 31+28+31+30+21=141 days, total day
Number is greater than benchmark number of days 80 days, then time adjusting parameter is 0, Persian part=1386-0=1386 over the years.
In the present embodiment, by the above-mentioned means, Persian part over the years determined by can making is more accurate, to make television set
The time showing for switching to Persian calendar is more accurate.
Based on above-mentioned first embodiment, the application time display method second embodiment is proposed.Referring to Fig. 5, in step S30
In, after execution step S32, further includes:
Step S33 determines the first difference between total number of days and the benchmark number of days;
Specifically, calculating the first difference using total number of days as minuend, benchmark number of days as subtrahend.For example, 2007
Benchmark number of days is 80, and when total number of days is 64, the first difference is 64-80=-24;When total number of days is 141, the first difference is
141-80=61.
Step S34, judges whether first difference is greater than or equal to 0;
If first difference is greater than or equal to 0, S35, step S36 are thened follow the steps;If the first difference is held less than 0
Row step S301 to step S308.
Step S35 is obtained and is each preset month corresponding preset number of days in the part over the years of the Persian;
Persian part over the years specifically includes 12 default months, successive, the correspondence of each month of first six months part temporally
Preset number of days be 31 days, corresponding preset number of days will be 30 days in lower each month in five months, the last one month is gone through in Persian
Non-leap year when be 29 days, when leap year gone through in Persian is 30 days.Specifically, can calculate judgement by Persian part over the years is that Persian is gone through
Leap year or non-leap year.
Step S36 determines the Persian calendar month and the day sequence according to first difference and each preset number of days
Number.
Specifically, referring to Fig. 6, step S36 includes:
Step S361 is ranked up each preset number of days according to the chronological order in each default month, shape
At default queue;
Corresponding preset number of days every month is arranged according to first month to last one month sequence in the calendar of Persian
Sequence, obtained arrangement array is as default queue.For example, current Persian part over the years be non-leap year when, preset queue be 31,31,
31,31,31,31,30,30,30,30,30,29};Current Persian part over the years be the leap year when, preset queue be 31,31,31,
31,31,31,30,30,30,30,30,30}。
Step S362 sets 1 for the first design variables, sets first difference for the second design variables;
Presetting x is the first design variables, and y is the second design variables.1 is set by the initial value of x;By the initial of y
Value is set as the difference of total number of days Yu standard number of days, for example, total number of days is 141, then the initial value of y in 2007 calendar year
It is 61.
Step S363 will arrange precedence and the consistent preset number of days of the first design variables as first in default queue
Target number of days;
When first design variables are 1, using the preset number of days of arrangement first in default queue as first object number of days, such as
31。
Step S364, judges whether second design variables are greater than the first object number of days;
If second design variables are greater than the first object number of days, after thening follow the steps S365, return to step
S363;If second design variables are less than or equal to the first object number of days, S366 is thened follow the steps.
Second design variables are updated to second design variables and the first object number of days by step S365
Difference, by first design variables be updated to first design variables with 1 and;
After second design variables are subtracted first object number of days, as the second new design variables, by the first design variables
After increasing by 1, as the first new design variables, returns again to and execute step S363.When returning to step S363 for the first time, the
One design variables are 1, and the second design variables subtract benchmark number of days for total number of days and subtract value (such as 141- after first object number of days again
80-31=30), using the preset number of days of arrangement second in default queue as new first object number of days, such as 31, judgement is worked as again
Whether the second preceding design variables are greater than current first object number of days.So analogize, until the judging result of step S364 is
Until second design variables are less than or equal to current first object number of days.
Step S366, using first design variables as the Persian calendar month, using second design variables as
The day ordinal number.
It is successively that the number of days of total number of days and benchmark number of days is poor according to chronological order by step S361 to step S366
Preset number of days corresponding with each default month compares, and accurately determines current Persian calendar month and day ordinal number to realize.
Step S301 determines the current calendar year according to the calendar year information;
For example, the current calendar year is 2007 when calendar year information is 2007.
Step S302, determine in each default month across the month of two calendar years be target month, wherein institute
Stating two calendar years includes the current calendar year and its previous calendar year;
In each default month of Persian calendar, determine that across 2006 be the target moon with 2007 in months, two
Part.Generally, 10th month in the calendar of Persian can be across two calendar years, therefore can be by the conduct in 10th month in the calendar of Persian
Target month.
Step S303 determines that number of days of the target month in the current calendar year is the second target number of days, determines institute
Stating number of days of the target month in the previous calendar year of the current calendar year is third target number of days;
When target month is 10th month of Persian calendar, the second target number of days can be specially 20 days, third target number of days
It can be specially 10 days.
Step S304, judges whether total number of days is less than or equal to the second target number of days;
If so, thening follow the steps S305;If it is not, thening follow the steps S306, step S307 and step S308.
Step S305, using the target month as the Persian calendar month, by total number of days and the third target
The sum of number of days, as the day ordinal number;
Total number of days is less than or equal to the second target number of days, shows that the date on the same day is within target month in the calendar of Persian.Therefore,
Target month be needed for determine the Persian calendar month, day ordinal number be then the sum of total number of days and third target number of days.
Step S306 obtains the corresponding preset number of days of rear January in the target month as preset value;
It, can be by 11st month corresponding default day in the calendar of Persian when target month is 10th month in the calendar of Persian
Number 30 is used as preset value.
Step S307 determines that the number of days of total number of days and the second target number of days is poor, as the second difference;
Step S308, quotient and the target month according to second difference divided by the preset value, determine described in
The Persian calendar month, using second difference divided by the remainder of the preset value as the day ordinal number.
For example, corresponding total number of days is 64, and second is poor when the date information in temporal information is the Gregorian calendar on March 5th, 2017
Value is poor the 44 of 64-20.The quotient that second difference is in preset value is 1, and remainder 14, then the Persian calendar month are target month
The latter moon, day ordinal number are 14.Wherein, if quotient is 2, the Persian calendar month are latter two moon in target month, are so analogized.
In the present embodiment, by above-mentioned mode, the date information of Gregorian calendar form can be accurately converted to Persian and gone through
Time, Persian calendar month and the Persian calendar month in one's duty day ordinal number, so that fast accurate determines that the Persian of current desired display is gone through
Date, improve television set shown by Persian last between reliability.
In addition, the embodiment of the present invention also proposes that a kind of television set, television set include the time showing dress in above-described embodiment
It sets, to carry out time showing according to the correlation step in above-mentioned time display method any embodiment.
In addition, the embodiment of the present invention also proposes a kind of readable storage medium storing program for executing, having time is stored on the readable storage medium storing program for executing
Show that program, the time showing program realize the related step of time display method any embodiment as above when being executed by processor
Suddenly.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of time display method, which is characterized in that the time display method the following steps are included:
Obtain the current temporal information of television system;
Judge whether the television system is in preset time display pattern;
If so, being generated between corresponding Persian lasts according to the temporal information;
Between showing that the Persian lasts.
2. time display method as described in claim 1, which is characterized in that the Persian last between include Persian part over the years,
It is described corresponding Persian is generated according to the temporal information to include: the step of lasting
Extract the date information in the temporal information;
Persian part over the years is determined according to the date information and preset reference time.
3. time display method as claimed in claim 2, which is characterized in that the date information includes that the television system is worked as
Preceding calendar year information, Gregorian calendar month information and calendar day information, it is described to be determined according to the date information and preset reference time
The step of Persian part over the years includes:
Corresponding benchmark number of days is determined according to the calendar year information, according to the calendar year information and the preset reference time
Determined for the first time;
According to the Gregorian calendar month information and the calendar day information, it is total to initial day to count current date in the current calendar year
Number of days;
Time adjusting parameter is determined according to total number of days and the benchmark number of days;
Persian part over the years is determined according to first time and the time adjusting parameter.
4. time display method as claimed in claim 3, which is characterized in that the Persian last between further include the Persian calendar month
It is described corresponding Persian to be generated according to the temporal information the step of lasting with the Persian calendar month in one's duty day ordinal number,
After determining Persian part over the years according to first time and the time adjusting parameter, further includes:
Determine the first difference between total number of days and the benchmark number of days;
Judge whether first difference is greater than or equal to 0;
If first difference is greater than or equal to 0, obtains and each preset month corresponding default day in the part over the years of the Persian
Number;
According to first difference and each preset number of days, the Persian calendar month and the day ordinal number are determined.
5. time display method as claimed in claim 4, which is characterized in that described according to first difference and each described pre-
If number of days, the step of determining the Persian calendar month and the day ordinal number, includes:
Each preset number of days is ranked up according to the chronological order in each default month, forms default queue;
1 is set by the first design variables, sets first difference for the second design variables;
Precedence and the consistent preset number of days of the first design variables will be arranged in default queue as first object number of days;
Judge whether second design variables are greater than the first object number of days;
If second design variables are greater than the first object number of days, second design variables are updated to described second
First design variables are updated to first design variables and 1 by the difference of design variables and the first object number of days
With;
The execution precedence and the consistent preset number of days of the first design variables of arranging in default queue is returned as first
The step of target number of days;
If second design variables are less than or equal to the first object number of days, using first design variables as described in
The Persian calendar month, using second design variables as the day ordinal number.
6. time display method as claimed in claim 5, which is characterized in that it is described judge first difference whether be greater than or
After the step of equal to 0, further includes:
If first difference determines the current calendar year less than 0, according to the calendar year information;
Determine in each default month across the month of two calendar years be target month, wherein described two calendar years
Part includes the current calendar year and its previous calendar year;
It determines that number of days of the target month in the current calendar year is the second target number of days, determines the target month in institute
Stating the number of days in the previous calendar year of current calendar year is third target number of days;
Judge whether total number of days is less than or equal to the second target number of days;
If so, using the target month as the Persian calendar month, by total number of days and the third target number of days it
With as the day ordinal number;
If it is not, then obtaining the corresponding preset number of days of rear January in the target month as preset value;
Determine that the number of days of total number of days and the second target number of days is poor, as the second difference;
Quotient and the target month according to second difference divided by the preset value, determine the Persian calendar month, will
Second difference is divided by the remainder of the preset value as the day ordinal number.
7. such as time display method described in any one of claims 1 to 6, which is characterized in that the acquisition television system is worked as
The step of preceding temporal information includes:
Real time monitoring inputs the code stream of the television system;
The temporal information is extracted in the code stream;And/or
It is described to judge that the step of whether television system is in preset time display pattern includes:
Read the default characteristic variable in the television system;
According to the default characteristic variable, judge whether the television system is in preset time display pattern.
8. a kind of time display apparatus, which is characterized in that the time display apparatus includes: memory, processor and is stored in
On the memory and the time showing program that can run on the processor, the time showing program is by the processor
The step of time display method as described in any one of claims 1 to 7 is realized when execution.
9. a kind of television set, which is characterized in that the television set includes time display apparatus as claimed in claim 8.
10. a kind of readable storage medium storing program for executing, which is characterized in that time showing program is stored on the readable storage medium storing program for executing, it is described
The step of time display method as described in any one of claims 1 to 7 is realized when time showing program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910600659.3A CN110225414A (en) | 2019-07-04 | 2019-07-04 | Television set and its time display method, time display apparatus and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910600659.3A CN110225414A (en) | 2019-07-04 | 2019-07-04 | Television set and its time display method, time display apparatus and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110225414A true CN110225414A (en) | 2019-09-10 |
Family
ID=67812183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910600659.3A Pending CN110225414A (en) | 2019-07-04 | 2019-07-04 | Television set and its time display method, time display apparatus and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110225414A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN86200226U (en) * | 1986-01-20 | 1987-08-26 | 罗金升 | Universal common and famer's calendar |
CN1288180A (en) * | 2000-06-14 | 2001-03-21 | 四川长虹电器股份有限公司 | Display method of lunar calendar |
CN1642243A (en) * | 2004-01-17 | 2005-07-20 | 深圳创维-Rgb电子有限公司 | Method for realizing permanent calendar |
CN101083635A (en) * | 2007-04-04 | 2007-12-05 | 腾讯科技(深圳)有限公司 | Method, system and equipment for replacing calendar time to manage affairs in kalendar |
CN101188663A (en) * | 2006-11-15 | 2008-05-28 | 康佳集团股份有限公司 | STB with time reporting function |
US20090276542A1 (en) * | 2008-05-02 | 2009-11-05 | Nortel Networks Limited | Method and apparatus for time and frequency transfer in communication networks |
CN101753901A (en) * | 2008-12-02 | 2010-06-23 | 天津三星电子显示器有限公司 | Implementing method of television lunar calendar time and solar terms displaying functions |
CN103514800A (en) * | 2012-06-26 | 2014-01-15 | 卡西欧计算机株式会社 | Calendar display device |
US20150058873A1 (en) * | 2013-08-23 | 2015-02-26 | Echostar Technologies L.L.C. | Customized content calendar |
CN104980712A (en) * | 2015-07-14 | 2015-10-14 | 济南中维世纪科技有限公司 | Intelligent indexing method after video monitoring data recovery |
CN105827840A (en) * | 2016-03-29 | 2016-08-03 | 乐视控股(北京)有限公司 | Calendar information generation method and device |
EP3316204A1 (en) * | 2016-11-01 | 2018-05-02 | Facebook, Inc. | Targeted content during media downtimes |
CN109040820A (en) * | 2018-08-27 | 2018-12-18 | 深圳Tcl数字技术有限公司 | Method for synchronizing time, device, smart television and computer readable storage medium |
-
2019
- 2019-07-04 CN CN201910600659.3A patent/CN110225414A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN86200226U (en) * | 1986-01-20 | 1987-08-26 | 罗金升 | Universal common and famer's calendar |
CN1288180A (en) * | 2000-06-14 | 2001-03-21 | 四川长虹电器股份有限公司 | Display method of lunar calendar |
CN1642243A (en) * | 2004-01-17 | 2005-07-20 | 深圳创维-Rgb电子有限公司 | Method for realizing permanent calendar |
CN101188663A (en) * | 2006-11-15 | 2008-05-28 | 康佳集团股份有限公司 | STB with time reporting function |
CN101083635A (en) * | 2007-04-04 | 2007-12-05 | 腾讯科技(深圳)有限公司 | Method, system and equipment for replacing calendar time to manage affairs in kalendar |
US20090276542A1 (en) * | 2008-05-02 | 2009-11-05 | Nortel Networks Limited | Method and apparatus for time and frequency transfer in communication networks |
CN101753901A (en) * | 2008-12-02 | 2010-06-23 | 天津三星电子显示器有限公司 | Implementing method of television lunar calendar time and solar terms displaying functions |
CN103514800A (en) * | 2012-06-26 | 2014-01-15 | 卡西欧计算机株式会社 | Calendar display device |
US20150058873A1 (en) * | 2013-08-23 | 2015-02-26 | Echostar Technologies L.L.C. | Customized content calendar |
CN104980712A (en) * | 2015-07-14 | 2015-10-14 | 济南中维世纪科技有限公司 | Intelligent indexing method after video monitoring data recovery |
CN105827840A (en) * | 2016-03-29 | 2016-08-03 | 乐视控股(北京)有限公司 | Calendar information generation method and device |
EP3316204A1 (en) * | 2016-11-01 | 2018-05-02 | Facebook, Inc. | Targeted content during media downtimes |
CN109040820A (en) * | 2018-08-27 | 2018-12-18 | 深圳Tcl数字技术有限公司 | Method for synchronizing time, device, smart television and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8379999B2 (en) | Methods, circuits, devices, apparatuses and systems for providing image composition rules, analysis and improvement | |
US10313746B2 (en) | Server, client and video processing method | |
CN110706314B (en) | Element layout method and device, electronic equipment and readable storage medium | |
CN110457615A (en) | Method for displaying and processing, device, equipment and the readable storage medium storing program for executing of personal page | |
CN109618224A (en) | Video data handling procedure, device, computer readable storage medium and equipment | |
CN110750567A (en) | Wearing and matching data generation method and system based on intelligent wardrobe | |
US20220230740A1 (en) | Method and computer program to determine user's mental state by using user's behavior data or input data | |
CN113160231A (en) | Sample generation method, sample generation device and electronic equipment | |
CN114598919B (en) | Video processing method, device, computer equipment and storage medium | |
CN114650430B (en) | Service list display method and device, electronic equipment and storage medium | |
CN113521758B (en) | Information interaction method and device, electronic equipment and storage medium | |
CN111494946A (en) | Image processing method, device, equipment and computer readable storage medium | |
CN115514995A (en) | Method, device and equipment for displaying recommendation information of live broadcast room | |
CN110225414A (en) | Television set and its time display method, time display apparatus and readable storage medium storing program for executing | |
WO2023173828A1 (en) | Scene element processing method and apparatus, device, and medium | |
CN111723758A (en) | Video information processing method and device, electronic equipment and storage medium | |
CN116052251A (en) | Face image optimization method, device, equipment and storage medium | |
CN109842727A (en) | Report method, device, terminal and the storage medium of touching signals | |
CN112348403B (en) | Wind control model construction method and device and electronic equipment | |
CN113923392A (en) | Video recording method, video recording device and electronic equipment | |
CN106454323B (en) | To optimize photograph or multimedia method and its system and electronic device | |
CN114245193A (en) | Display control method and device and electronic equipment | |
CN112578953B (en) | Display control method and device applied to terminal interface | |
CN113408452A (en) | Expression redirection training method and device, electronic equipment and readable storage medium | |
CN112418942A (en) | Advertisement display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190910 |
|
RJ01 | Rejection of invention patent application after publication |