10-16-2019
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
SunOS5.8 is a radical departure from SunOs4.X in many ways. one of the important differences is the handling of devices. Adding devices under SunOS4.x required a kernel reconfiguration, recompliation and reboot. Under SunOS5.X, this has changed with the ability to add some drivers on the fly.... (1 Reply)
Discussion started by: Foo49272
1 Replies
2. HP-UX
One cool thing about unix is that it predicts disk blocks that you may need and tries to have them in core before you need them. Over the years, various unix vendors tried various algorithms to improve performance. HP has patented their latest algorithm...
Multi-threaded Read Ahead Prediction... (0 Replies)
Discussion started by: Perderabo
0 Replies
3. Shell Programming and Scripting
I would like to search a router config file for "ip address $ip", once found, I want to grab the line just before that contains "interface $interfacetype"
basically saying, 10.3.127.9 is assigned to "Loopback1" given the below as an example.
interface Loopback1
ip address 10.3.127.9... (1 Reply)
Discussion started by: popeye
1 Replies
4. AIX
Hi Guys,
I wonder if after enabling CIO/DIO at the filesystem level and assuming that CIO/DIO will bypass the JFS2 read ahead available when not using CIO/DIO my questionis what parameters I can play with to tune/improve the CIO in order to obtain similar performance for sequential reads (... (7 Replies)
Discussion started by: hariza
7 Replies
5. UNIX for Dummies Questions & Answers
:confused:
Good Day,
I have this script that gets the archive names and the time it applies based on the alert log. The application of archives are of daily basis and usually many so having this script helps my job become easier.
My problem is that when i get all the time stamps and... (1 Reply)
Discussion started by: ownins
1 Replies
6. Shell Programming and Scripting
Hi,
I am trying to write a ksh to compare the time in a date
date
Thu Jul 1 09:01:24 PDT 2010
when I try to get hour
date | awk '{print $4}' | cut -f1 -d:
08
how I can trim the 0 ahead of 08 to make it 8?
please help~ (7 Replies)
Discussion started by: netbanker
7 Replies
7. Windows & DOS: Issues & Discussions
Time on unix server shows 8:00a CST
Time on Windows 7 Box shows 8:00a CST
However when you access an NFS share the time stamp on the files show an hour ahead? Talking about a newly created file shows an hour ahead so at 8:00a the file will show a time stamp of 9:00a CST
the problem it... (1 Reply)
Discussion started by: Paul Standley
1 Replies
LEARN ABOUT PHP
px_date2string
PX_DATE2STRING(3) PX_DATE2STRING(3)
px_date2string - Converts a date into a string.
SYNOPSIS
string px_date2string (resource $pxdoc, int $value, string $format)
DESCRIPTION
Turns a date as it stored in the paradox file into human readable format. Paradox dates are the number of days since 1.1.0000. This func-
tion is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the example below.
PARAMETERS
o $pxdoc
- Resource identifier of the paradox database as returned by px_new(3).
o $value
- Value as stored in paradox database field of type PX_FIELD_DATE.
o $format
- String format similar to the format used by date(3). The placeholders support by this function is a subset of those supported by
date(3) (Y, y, m, n, d, j, L).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Turn a paradox date into a human readable form
<?php
$px = px_new();
/* make up a date as it could be stored in */
/* a date field of a paradox db. */
/* 700000 days since 1.1.0000. */
$days = 700000;
/* Use the calendar functions to print a */
/* human readable format of the date */
echo jdtogregorian($days+1721425)."
";
/* px_date2string() outputs the same */
echo px_date2string($px, $days, "n/d/Y")."
";
px_delete($px);
?>
The above example will output:
7/15/1917
7/15/1917
SEE ALSO
px_timestamp2string(3), jdtogregorian(3).
PHP Documentation Group PX_DATE2STRING(3)