---------- Post updated at 08:39 AM ---------- Previous update was at 08:36 AM ----------
@methyl
Yes I mean unix DC program.
Also please explain how the "od" command plays the significance and how DC gets the above out put. I was wondering what was the purpose of "od" here.
Last edited by vbe; 11-17-2010 at 09:41 AM..
Reason: code tags please
Hi,
i need to convert below date/time format into epoch time
YYYY-m-d H:M
below the example:
a=`date +"%F %H:%M"`
echo $a
Convert $a to epoch time
------------------------------------------------------------------------
lets take an example
if $a=1.03
here i want the epoch time... (3 Replies)
Hi guys,
I know that this topic has been discuss numerous times, and I have search the net and this forum for it.
However, non able to address the problem I faced so far.
I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Hi,
Is there any easy way to convert date time(stored in shell variable ) to epoch time in solaris box? As +%s is working on linux but not on solaris, also -d option is not working.
Any suggestion please? (6 Replies)
Hi guys,
Im trying to subtract time in ksh script. i.e. basically im querying a database and i want to get the time 10mins before hand..(from)
in ksh
CurrMin=$(date "+%M")
from=`expr $CurrMin - 10`
to=$CurrMin
however if i run this i say at 2 or 3 mins past the hour, i.e.... (7 Replies)
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Dear experts,
I have an epoch time input file such as : -
1302451209564
1302483698948
1302485231072
1302490805383
1302519244700
1302492787481
1302505299145
1302506557022
1302532112140
1302501033105
1302511536485
1302512669550
I need the epoch time above to be converted into real... (4 Replies)
# date +%s -d "Mon Feb 11 02:26:04"
1360567564
# perl -e 'print scalar localtime(1360567564), "\n";'
Mon Feb 11 02:26:04 2013
the epoch conversion is working fine. but one of my application needs 13 digit epoch time as input
1359453135154
rather than 10 digit epoch time 1360567564... (3 Replies)
Hello All,
I have a Perl script I'm writing where I ask the user to enter a "start time" for something. The "$start_time" will be in the format of:
# The Time CLI Option Can be in the format of:
--start-time="1day"
--start-time="2hours"
--start-time="45min"
... (1 Reply)
I have unix epoch time 1441678454803, Can you please help me to print this time in below format ?
DAY,HOUR,MIN,SEC
Appreciate your help!!!
Thanks,
Prince (7 Replies)
Discussion started by: prince1987
7 Replies
LEARN ABOUT REDHAT
xmsetcolorcalculation
XmSetColorCalculation(library call) XmSetColorCalculation(library call)
NAME
XmSetColorCalculation -- A function to set the procedure used for default color calculation
SYNOPSIS
#include <Xm/Xm.h>
XmColorProc XmSetColorCalculation(
XmColorProc color_proc);
DESCRIPTION
XmSetColorCalculation sets the procedure to calculate default colors. This procedure is used to calculate the foreground, top shadow, bot-
tom shadow, and select colors on the basis of a given background color. If called with an argument of NULL, it restores the default proce-
dure used to calculate colors.
color_proc
Specifies the procedure to use for color calculation.
Following is a description of the XmColorProc type used by XmSetColorCalculation:
void (*color_proc) (background_color, foreground_color, select_color, top_shadow_color,
bottom_shadow_color)
XColor *background_color;
XColor *foreground_color;
XColor *select_color;
XColor *top_shadow_color;
XColor *bottom_shadow_color;
(void)
Specifies the procedure used to calculate default colors. The procedure is passed a pointer to an XColor structure representing the back-
ground color. The pixel, red, green, and blue members of this structure are filled in with values that are valid for the current colormap.
The procedure is passed pointers to XColor structures representing the foreground, select, top shadow, and bottom shadow colors to be cal-
culated. The procedure calculates and fills in the red, green, and blue members of these structures. The procedure should not allocate
color cells for any of these colors.
background_color
Specifies the background color.
foreground_color
Specifies the foreground color to be calculated.
select_color
Specifies the select color to be calculated.
top_shadow_color
Specifies the top shadow color to be calculated.
bottom_shadow_color
Specifies the bottom shadow color to be calculated.
RETURN
Returns the color calculation procedure that was used at the time this routine was called.
RELATED XmChangeColor(3), XmGetColors(3), and XmGetColorCalculation(3).
XmSetColorCalculation(library call)