In fact, I also have a headache regular expression, Baidu some information, summed up, here to leave a backup bar.
The question to consider: what is the legal date, the number of days per month is different, the question of a leap year ....
1.
public static void Main (string[] args) throws parseexception{
String str1 = "2012-05-15";
String str2 = "2012/05/15";
if (ZZBD (str1)) {
System.out.println ("str1 have match!");
}else{system.out.println ("str1 don ' t match!");}
if (ZZBD (str2
In fact, I also have a headache with regular expressions. Baidu has some materials. To sum up, leave a backup here.
The question to consider is: the valid date, the number of days per month, and the leap year ....
1. valid date: the date and time
The problem is: in the tutorial, the default type of Date in the hibernate framework is the timestamp (datetime), so no additional configuration is required in the ing file, the format of year, month, day, and hour, minute, and second is required.
Plus reference: Using System.Text.RegularExpressions;Check if the string is a date format//2011-5-8 8:08:05public static string check (string s){if (Regex.IsMatch (s),"^ ((((1[6-9]| [2-9]\\d) \\d{2})-(0?[ 13578]|1[02])-(0?[ 1-9]| [12]\\d|3[01]) | (((
JS Gets the current date time and other operations var mydate = new Date (); Mydate.getyear (); Gets the current year (2-bit) mydate.getfullyear (); Get the complete year (4-bit, 1970-????) Mydate.getmonth (); Get the current
Applicable scenario -log time to Unix time sample log:
2017-03-21 00:00:00,291 INFO [dubboserverhandler-10.135.6.53:20885-thread-98] I.w.w.r.m.requirementmanager [ REQUIREMENTMANAGER.JAVA:860] Fetch no data from Oracle 2017-03-21 00:00:00,294
Recently I read an article about go product development best practices, go-in-procution. The author sums up a lot of practical experience in the process of using go for development, and many of them are actually used. In view of this, here is a simple post-reading experience, I will try to translate this article later. I will use soundcloud to refer to the original author later.Development Environment
In soundclou
This is a creation in
Article, where the information may have evolved or changed.
Recently read an article on best practices for Go product development, go-in-procution. The author summarizes their use of go development process of many practical experience, many of us actually use, in view of this, here simply write the book, follow-up I also strive to be able to translate this article. Later I used SoundCloud to refer to the original author.
Develo
-- CREATE a recursive tree History TABLE and generate the data create table TREE_HIS (id number, C_CHILD VARCHAR2 (32 BYTE), C_NAME VARCHAR2 (100 BYTE), P_ID NUMBER, EFF_DATE DATE, EXP_DATE DATE); create index IDX2 ON TREE_HIS (P_ID); create unique index IDX3 ON TREE_HIS (C_CHILD, EXP_DATE); create unique index TREE_HIS_PK ON TREE_HIS (ID ); alter table TREE_HIS ADD (CONSTRAINT TREE_HIS_PK primary key (ID); alter table TREE_HIS ADD (CONSTRAINT TREE_HIS_R01 foreign key (P_ID) REFERENCES TREE_HIS
, the usual page response time is 2-3 seconds. The strange thing is that Spotify's average loading time on desktop computers is 9.62 seconds. It seems that these e-entertainment web pages still have a long way to go in this regard.
We decided to perform a thorough test of SoundCloud, because this website has set an outstanding example for other companies in terms of smartphone web page development. In general, through tests, we found that
of Twitter
Top 5:wikipedia
Wikipedia may be the best encyclopedia to date. The current Wikipedia page is extremely elegant, with more text than pictures, so typography is especially important. George has redesigned Wikipedia's home page based on existing pages and columns. The left side of the picture for the date index, quite ingenuity, while the right side of the use of graphics and text in the form of rectangular blocks of the same size to divide different columns. It is wort
GitHub
"GitHub uses elasticsearch to search 20 TB of data, including 1.3 billion files and 130 billion lines of code"
I don't need to introduce this. coders understand it. GitHub upgraded their code search in January 2013 and changed it from SOLR to elasticsearch, the current cluster size is 26 index storage nodes and 8 client nodes (responsible for processing search requests). For details, see the official blogHttps://github.com/blog/1381-a-whole-new-code-search
Foursquare"Searches tens of mill
GitHub
"GitHub uses elasticsearch to search 20 TB of data, including 1.3 billion of files and 130 billion rowsCode"
I don't need to introduce this. coders understand it. GitHub upgraded their code search in January 2013 and changed it from SOLR to elasticsearch, the current cluster size is 26 index storage nodes and 8 client nodes (responsible for processing search requests). For details, see the official blogHttps://github.com/blog/1381-a-whole-new-code-search
Foursquare"Searches tens of m
Github
"GitHub uses Elasticsearch to search 20TB of data, including 1.3 billion of files and 130 billion lines of code"
This does not need to introduce, the yards farmers understand, GitHub in January 2013 upgraded their code search, from SOLR to Elasticsearch, the current cluster size of 26 index storage nodes and 8 client nodes (responsible for processing search requests), see the official BlogHttps://github.com/blog/1381-a-whole-new-code-search
Foursquare"Real-time search for 50 million locat
conventions, so if//you ' re trying for international, always use YYYY-MM-DD. ### YYYY-MM-DD HH:mm:ss. SSS ###//Full 24-hour format with milliseconds ### yyyy/mm/dd. SSS ###//Full 24-hour format with milliseconds ### yyyy-mm-dd. SSS a ###//12-hour format with milliseconds ### yyyy
The following examples illustrate:Sql> Set Linesize 200Sql> Show Parameter Nls_date_languageNAME TYPE VALUE----------------------------------------------------------------------------------------Nls_date_language string AMERICANSql> Show Parameter Nls_date_formatNAME TYPE VALUE----------------------------------------------------------------------------------------Nls_date_format string DD-MON-RRSql> select Sysdate from dual; --When no output format is used, it is the default date format DD-MON-R
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.