Hi, if you use echo with a pattern first, for example
or
this will show you what files the cat command would be using if you use it with that pattern..
I don't see any threads like this and I know that a bunch of people have really cool desktops, so I`ll start.
rules
1 no images in your post,attachments only
2 no default desktops, tha would be very much a waste (2 Replies)
Hello I'm new to this forum. So please spare me!
I'm using SCO UnixWare 7.1.4 and created a few accounts. So far so good.
When I login I see: $.
But here I want to see (for example),
/home
25$
So I want to see the pathname where I am without each time typing pwd (2 Replies)
Hello,
I'm using ls -laR to print out a list of file and folders. I want to print only the permission, file size and file name. Also, excluding the '.' and '..'.
result from ls -laR:
total 6
drwxr-xr-x 8 user staff 512 Nov 28 16:17 .
drwxr-x--- 16 user staff 1024... (3 Replies)
On Solaris, is there a command which can show the file system of a specific directory?
In a script, i need to figure out whether a directory or its parent directory is mounted as "NFS".
Is there a easy way to figure it out? (3 Replies)
Hello everyone:
I want list all the outcoming connections for a process by using lsof, that process seems to be creating a lot of sequential connections and one of them takes more time than the others, however lsof does not include information about timestamps or how long each connection is... (1 Reply)
$LINENO is bash "system" variable but I cannot get any output trying to use it.
Am I missing something fundamental?
Here is the code snippet
13)
247 echo "TEMPLATE Option 13"
248
249 # *** BEGIN DEBUG BLOCK ***
250 last_cmd_arg=$_ # Save it.
251
... (6 Replies)
Discussion started by: annacreek
6 Replies
LEARN ABOUT PHP
datefmt_get_pattern
DATEFMT_GET_PATTERN(3) 1 DATEFMT_GET_PATTERN(3)IntlDateFormatter::getPattern - Get the pattern used for the IntlDateFormatter
Object oriented style
SYNOPSIS
public string IntlDateFormatter::getPattern (void )
DESCRIPTION
Procedural style
string datefmt_get_pattern (IntlDateFormatter $fmt)
Get pattern used by the formatter.
PARAMETERS
o $fmt
- The formatter resource.
RETURN VALUES
The pattern string being used to format/parse.
EXAMPLES
Example #1
datefmt_get_pattern(3) example
<?php
$fmt = datefmt_create(
'en_US',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN,
'MM/dd/yyyy'
);
echo 'pattern of the formatter is : ' . datefmt_get_pattern($fmt);
echo 'First Formatted output with pattern is ' . datefmt_format($fmt, 0);
datefmt_set_pattern($fmt,'yyyymmdd hh:mm:ss z');
echo 'Now pattern of the formatter is : ' . datefmt_get_pattern($fmt);
echo 'Second Formatted output with pattern is ' . datefmt_format($fmt, 0);
?>
Example #2
OO example
<?php
$fmt = new IntlDateFormatter(
'en_US',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN,
'MM/dd/yyyy'
);
echo 'pattern of the formatter is : ' . $fmt->getPattern();
echo 'First Formatted output is ' . $fmt->format(0);
$fmt->setPattern('yyyymmdd hh:mm:ss z');
echo 'Now pattern of the formatter is : ' . $fmt->getPattern();
echo 'Second Formatted output is ' . $fmt->format(0);
?>
The above example will output:
pattern of the formatter is : MM/dd/yyyy
First Formatted output is 12/31/1969
Now pattern of the formatter is : yyyymmdd hh:mm:ss z
Second Formatted output is 19690031 04:00:00 PST
SEE ALSO datefmt_set_pattern(3), datefmt_create(3).
PHP Documentation Group DATEFMT_GET_PATTERN(3)