Datetime numeric type system. datetime currenttime = new system. datetime ();
1. Use the current year, month, day, hour, minute, second, currenttime = system. datetime. now;
2. The current year int year = currenttime. Year;
3. Use the int month of
--Get current GMT print (Os.time ())--Gets the string representation of the current time, in the form of: 11/28/08 10:28:37 print (Os.date ())--Gets the string representation of the current date, in the form: 11/28/08 print (Os.date ("%x", Os.time ()
Task:display current BASH prompt (PS1)
Use the echo command to display current BASH prompt:$ echo $PS 1Sample outputs:
[\\u@\h \\w]\\$
This is another output from my Debian based system:$ echo $PS 1Sample outputs:
\[\e]0;\u@\h:
The use cases for generating unique IDs are very common, such as temporary cache file names, temporary variables, and temporary security codes. The uniqid () function is based on the current time in microseconds, generate a unique ID. Because the
/D: represents the date, in the format of weekday month date, for example: "Mon Aug 1"/H: complete host name. For example, if my machine name is fc4.linux, this name is fc4.linux./H: only the first name of the host. In the preceding example, the
# PS1 = 'custom content' pay attention to the single quotation mark examples on both sides: PS1 = '(/u @/H/D/T)/$ 'your PS1: the user's usual prompt. PS2: the first line is not complete. Wait for the prompt entered in the second line. Linux system
This article is the Reading Notes of customizing your environment, chapter 3 of learning the bash shell 3rd edition. Setting up a good user environment is crucial for our development. This section describes four aspects: special files, aliases,
The Usleep () function delays code execution for several microseconds. The unpack () function unpack the data from a binary string. The Uniqid () function generates a unique ID based on the current time in microseconds. The Time_sleep_until ()
In linux, you can customize your own color scheme, whether it is the color of the linux command prompt or the output color of stdout. In/etc/DIR_COLORS, you can find the following instructions: Shell Code [root @ CentOS ~] # Cat/etc/DIR_COLORS #
In linux, you can customize your own color scheme, whether it is the color of the linux Command Prompt or the output color of stdout.In/etc/DIR_COLORS, you can find the following description: Shell code[Root @ CentOS ~]# Cat/etc/DIR_COLORS # Below
In this chapter we'll look at a seemingly trivial detail-our shell. This examination would reveal some of the inner working of the shell and the terminal emulator program itself.Many things in linux,the shell prompt was highly configurable,and while
Presumably in the command-line mode for a long time, all look tired of that monotonous and ugly cue, the individual think also accounted for some bit, if the command long words will break.Want to change intoCD ~/touch bash_profilevim.
View All RMAN configurations RMANgt; showall; RMANconfigurationparametersfordatabasewithdb_unique_nameOracle007are: CONFIGUR
View all RMAN configurations RMANgt; show all; RMAN configuration parameters for database with db_unique_name Oracle007 are:
You need to get the current time in the desktop software. To avoid the customer modifying the local time, you need to get the current time of the network. Is there any long-term service that can display the current timestamp URL? Requirement: the
FORMATA format description of RMAN
The following replace variables can be used when the FORMAT parameter is used:
% A: The activation ID of the Oracle database is RESETLOG_ID.
% C: number of copies of the backup fragment (starting from 1, up to 256 )
Offers: Zstack cloud computingContent IntroductionCommand-line operations are undoubtedly the most time-consuming process when managing Linux servers. For most users, this means a lot of time to manipulate the bash shell.While most distributions
1. Group function Usage Rules
Group functions in MySQL can be used at will in a SELECT statement, but in Oracle if there is a group function in the query, the other column names must be processed by the group function, or the column in the GROUP BY
Use the PHPuniqid function to generate a unique ID. The PHPuniqid function is used to generate a unique ID. it is common to use phpuniqid to generate a unique id, such as the temporary cache file name, temporary variables, temporary security code,
The PHP computing time period is the day of the week, the day after the current time and the time difference between the date. These time functions have been released. you don't need to use them! If you have any questions, you can leave a message
These time functions have been released. You don't need to use them! If you have any questions, you can leave a message below. I will reply in time to make friends ~
The Code is as follows:
Copy code
// Get the difference in
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.