%Time: ~ 0,2%%% means detailed explanation

Time:2021-10-20

Oh, this is a time-based format problem. The last two characters are milliseconds. Most people don’t need to do this. The format of a few minutes and a few seconds is a little more, so it is used in this way to remove the last three characters. The first 0 means that the offset is 0, that is, take the first character, start from the first character, and – 3 means to remove the last three characters. The previous 0 here can also be omitted. I understand. I don’t know if I’m wrong. I hope I don’t miss people’s children. I don’t know if you understand what I’ve said. There are such posts in the forum. You can search them. Lxmxn brother has also written such posts, and batch processing explains such usage. You must have a good look when you are free.

From set  /? Help extracted from:

    %PATH:~10,5%
Will expand   PATH   Environment variables are then used only in the extended results from   eleven   Number (partial)
Displacement   10) The first five characters of a character. If no length is specified, the default length is used
Value, that is, the remainder of the variable value. If both numbers (offset and length) are negative,
The number used is the numeric length of the environment variable plus the specified offset or length.
    %PATH:~-10%
Will extract   PATH   The last ten characters of the variable.
    %PATH:~0,-2%
Will extract   PATH   All characters of the variable except the last two.  
Example:
d:\>echo %time%
22:41:02.15
d:\>echo %time:~-3%
.77
d:\>echo %time:~0,-3%
22:41:19
d:\>echo %time:~,-3%
22:41:26
d:\>echo %time:~0,2%
22
d:\>set a=12345678
d:\>echo %a:~-5,-1%
4567
d:\>echo %a:~-5,-2%
456
d:\>echo %a:~-5,-5%
ECHO   Is open.
d:\>echo %a:~-5,-6%
ECHO   Is open.
d:\>echo %a:~-5,-4%

Recommended Today

Es DSL search – Multi_ Match, boost, and Boolean queries

1 Introduction It mainly introduces the basic API operation of index request. The request is made using postman. The prefix address of interface request is unified as elasticsearch deployment IP address + port number (for example: http://192.168.51.4:9200 。 Unified request address: POST /search_demo/_doc/_search 2 multi_match multi_matchMeet the requirements of using match to query in multiple […]