06-27-2001
What is the data structure for the UNIX time offset variables. If you do a man on time, you will see that time.h is the include file where these data structures are defined. (some are long ints, some are ints).
You can do a little homework on the data structure, post the results, if you don't mind? Thanks. The approach is to take the lenght of the integers and simply calculate what happens as the variables are converted between time subfunctions. You should be able to do this (with system call source code) quite easily.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
i am trying to figure out how i can get a 'Nix box to display
epoch time. Is there a command to do this? Do I know what I am talking about or am I an Idiot? Wait dont answer that last question!!!!! Thanx in advance!!!:confused: (2 Replies)
Discussion started by: Bodhi
2 Replies
2. Shell Programming and Scripting
Guys, i have a question...
I have 2 sets of data say "a" and "a+1" which has values in epoch time..
Question is... if i were to get the time difference where diff = "a+1" - "a"
can i convert it back to real time duration after the subtraction...
OR i need to convert em first before i do the... (1 Reply)
Discussion started by: 12yearold
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: ali560045
3 Replies
4. News, Links, Events and Announcements
unix epoch time 1234567890 = Fri, 13 Feb 2009 23:31:30 GMT
Any geek parties happening in celebration?
:D (2 Replies)
Discussion started by: BrewDudeBob
2 Replies
5. Shell Programming and Scripting
I need to convert an epoch time from a file into a standard UTC time and output it in the same format but I'm not sure what's the best approach
here's the input file and the bold part is what I need to convert.
1,1,"sys1",60,300000
2,"E:",286511144960
3,1251194521,"E:",0,0... (2 Replies)
Discussion started by: satchy321
2 Replies
6. Shell Programming and Scripting
Hi all!
I have a "simple" problem:
I want to convert a date and time string (YYYYMMDDhhmmss) to epoch (unix time) in a shellscript.
I want to use the "date/time" string as an input to the script, eg:
scriptname.sh 20090918231000 and get the epoch format echoed out.
Is there an... (3 Replies)
Discussion started by: condmaster
3 Replies
7. Shell Programming and Scripting
Hi all,
I got a file with epoch times like this.
1264010700
1264097400
1263529800
1263762900
1263924300
What I want.
I want all epoch times which are > current epoch time written to a file. So everything that is < will be ignored and not written to the file.
Thanks (3 Replies)
Discussion started by: stinkefisch
3 Replies
8. OS X (Apple)
Hi all,
In terminal when I enter:
date -j -f date -j -f "%Y/%m/%d %T" "2011/09/30 13:00:00" +"%s"
The output is:
When I put 2011/09/30 in var A, and I subsequently enter:
date -j -f date -j -f "%Y/%m/%d %T" "${A} 13:00:00" +"%s"
The output is: (10 Replies)
Discussion started by: mosthated
10 Replies
9. Shell Programming and Scripting
Hi,
Can anybody tell me how time is calculated in the below or what is actually being done here?
Also can you explain in simple words about epoch time and why it is used?
Thanks in advance (1 Reply)
Discussion started by: irudayaraj
1 Replies
10. Shell Programming and Scripting
Hi All,
I have a weird problem. I have a session log which is in .bin format. I am converting the .bin file to xml format using Informatica(it is an ETL tool) and unix functionality called "convertLogFiles" . All this is working fine. The session log has a date column. After converting the log... (3 Replies)
Discussion started by: galaxy_rocky
3 Replies
LEARN ABOUT OSF1
install-solaris
install-solaris(1M) install-solaris(1M)
NAME
install-solaris - install the Solaris operating system
SYNOPSIS
install-solaris
install-solaris invokes the Solaris Install program. Depending on graphical capability and available memory at the time of invocation,
install-solaris invokes either a text-based installer or a graphical installer.
The following minimum requirements for physical memory dictate which features are available during installation:
For SPARC machines:
128 MB
Minimum physical memory for all installation types
128 MB
Minimum physical memory required for windowing system
384 MB
Minimum physical memory required for graphical-based installation
For x86 machines:
256 MB
Minimum physical memory for all installation types
256 MB
Minimum physical memory required for windowing system
512 MB
Minimum physical memory required for graphical-based installation
In some cases, even if the minimum physical memory is present, available virtual memory after system startup can limit the number of fea-
tures available.
install-solaris exists only on the Solaris installation media (CD or DVD) and should be invoked only from there. Refer to the for more
details.
install-solaris allows installation of the operating system onto any standalone system. install-solaris loads the software available on the
installation media. Refer to the for disk space requirements.
Refer to the for more information on the various menus and selections.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcdrom (Solaris instal- |
| |lation media) |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
pkginfo(1), install(1M), pkgadd(1M), attributes(5)
It is advisable to exit install-solaris by means of the exit options in the install-solaris menus.
23 Sep 2005 install-solaris(1M)